Tutorial – addEventListener code completion in Flash Develop

1 actionscript,as3,as3 tutorials,flash,work  |   May 24, 2009  |     1872

Hi Everyone,

in one of the recent releases of FlashDevelop they added a wonderful feature which lets you see what events are dispatched by the objects you are using. This is done through some meta tags inside of the class declaration and the result is very valuable. It looks like this:

addEventListener auto-completion in Flash Develop

The meta tags are simple as you can see here:

  • The @eventType refers to the complete package + class + const that is used to represent the event type.
  • The name is the constant’s value, in this case the value of MediaTimeEvent.TIME
  • The type is the package + class of the event being dispatched

You insert them in the class which dispatches the events, like so:

If want some sample code, you can download the update source of the FLVPlayer classes here.

That’s it folks! 🙂

Comments
  • May 25, 2009 at 6:56 pm

    Video | Enjolt.com | Innovate for Success

    […] and other transitions via ActionScript code for Flash. $fx() – JavaScript Animation Library $fx 05.24Tutorial – addEventListener code completion in Flash Develop – blog.martinlegris.com 05/25/2009 Hi Everyone,in one of the recent releases of FlashDevelop they […]

Leave a Reply