MXMLC/ANT + Modules + Robotlegs Issue

So I’ve been messing around a lot lately with RobotLegs and Joel’s Modular Utility. I ran into a issue the other day thou. If you compile your modules with ANT or with the mxmlc compiler, you’ll notice none of your modules work correctly. The problem is by default the mxmlc compiler destroys all meta data. Including the Inject and PostConstruct meta tags that are used with RobotLegs & SwiftSuspendors(The low level injector RobotLegs utilizes). To fix this you need to modifiy your flex-config.xml file and add this to your compiler portion.

The Fix

<keep-as3-metadata>
	<name>Bindable</name>
	<name>Managed</name>
	<name>ChangeEvent</name>
	<name>NonCommittingChangeEvent</name>
	<name>Transient</name>
	<name>Inject</name>
	<name>PostConstruct</name>
</keep-as3-metadata>

Now every thing should work perfecto!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s