开发者

inside package

Similar t开发者_StackOverflow社区o the [Embed ()] tag I know from flex ¿ what's for the following code:

[Event(name="init",type="flash.events.Event")]
[Event(name="ioError",type="flash.events.IOErrorEvent")]
[Event(name="securityError",type="flash.events.SecurityErrorEvent")]

I've found this in several libraries I used, the one show here is from Flartoolkit, the code is defined inside the package, after the imports.

By the way, is this code executed when I compile in flash IDE?

Thanks, .am


That's actionscript's metadata tags. These specific ones declare that the class below them throws these kind of events of these types.

http://livedocs.adobe.com/flex/3/html/metadata_3.html#159710

This metadata gets bound to the class at runtime and is available for access


[Event] metadata is for the Flex framework and are not used by the Flash IDE, but you can use of the [Embed] metadata under Flash CS4

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜