I am trying this code
<s:SWFLoader id="Load" source="@Embed('assets/test.swf')" maintainAspectRatio="false" width="1024" height="748"/>
It is working firn for test.swf .
But i have one more swf of size 1 mb if i pass that as main.swf it is giving error as,
Description Resource Path Location Type
java.lang.IllegalArgumentException: symbol 2769 not defined SWFViewer.mxml /TestMobileEmbedSWF/src/views Unknown Flex Problem
What could be problem ? Do my main,swf is wrong . This api has some limitation how do i embed this in other way.
What version of AIR are you using?
I believe it was a new feature of AIR 3.5, with some memory improvements in the beta 3.6:
Packaging and Loading Multiple SWFs: This feature provides developers better memory management by allowing them to load the assets they need dynamically at ANY time from multiple SWFs and not have to load it up-front.