Issue Details (XML | Word | Printable)

Key: FDT-2469
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: FDT Team
Reporter: Panel
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FDT

Missing create event listener assist

Created: 28/Nov/11 06:54 PM   Updated: 22/Jun/12 07:01 PM
Component/s: Quick Fix / Assist
Affects Version/s: FDT 4.5.3
Fix Version/s: FDT 5.5
Security Level: public

Time Tracking:
Not Specified


 Description  « Hide
If you use string instead of static const 'create event listener' assist isn't available
var mc:MovieClip = new MovieClip();
mc.addEventListener(MouseEvent.CLICK, listener); //listener assist available
mc.addEventListener("click", listener);  //listener assist not available (listener should be generated with Event type)

Mostly using static const is best practice, but there are scenarios where using string is only option.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Panel added a comment - 20/Mar/12 12:31 AM
As I can see this already been fixed in 5.5, but this there is still a bug - generated listener have incorrect event param type - String instead of Event