tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/103-example-code-throws-exceptionsRobotlegs: Discussion 2018-10-18T16:35:12Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/18346372010-06-02T15:33:34Z2010-06-02T15:33:34ZExample Code throws exceptions when compiling with MXMLC<div><p>If you are linking against the source for both RL and
SwiftSuspenders, and are using the MXMLC compiler (Flash/Flex
Builder, FlashDevelop etc), you will need to add:</p>
<pre>
<code>-keep-as3-metadata+=Inject
-keep-as3-metadata+=PostConstruct</code>
</pre>
<p>to your compiler options. Alternatively, simply use the SWC
files (they include the options above automatically). This is
because the MXMLC compiler strips out non-standard metadata by
default.</p>
<p>If you are using the Flash IDE to compile you will need to
select “Export SWC” under File > Publish Settings.
This is because the Flash IDE compiler ignores metadata by
default.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/18346372010-06-02T16:16:56Z2010-06-02T16:16:59ZExample Code throws exceptions when compiling with MXMLC<div><p>Ahaa! Thanks a lot Shaun! That fixed it!</p></div>sascha