Using events is fun in MXML components is fun and easily you can specify events using Event meta tag inside the component like this:
<mx:Metadata>
[Event(name="myevent", type="com.MyEvent")]
</mx:Metadata>
The following lines defines the myevent attribute of the component like this:
<com:FramedImage x="10" y="10" myevent="handleMyEvent(event)" … />
FramedImage component is a custom component which displays a framed image.
For [...]
I wanted to talk a while ago about the [Mixin] meta-data tag but I forgot .
Most programmers have heard of the static code concept but if they try to implement it in AS3/Flex they have problems. Here is how to do it:
package
{
import mx.managers.ISystemManager;
[Mixin]
public class StaticCode
[...]