Skip navigation
Currently Being Moderated

Embeding .swf file in mobile project using <s:SWFLoader> getting error as illegalArgumentException.

Mar 1, 2012 1:07 AM

Tags: #adobe #flex #mobile #ios

Hi,

 

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.

 

Regards,

Madhu

 
Replies
  • Currently Being Moderated
    Dec 11, 2012 1:19 PM   in reply to madhu_51

    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.

     

    http://labs.adobe.com/technologies/flashruntimes/air/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points