please check that your loading swf should be created with Action Script3. If the loading swf have different version then you will get null loader content.
On Tue, Dec 2, 2014 at 5:07 AM, Jerry Hamby [via Apache Flex Users] < [email protected]> wrote: > I have in my Flex app (Apache SDK 4.12.1): > <mx:SWFLoader id="loader1" creationComplete="swfLoaded(event)" > complete="contentLoaded(event)"/> > > I use the code below to find the SWF file: (this seems to work for both > the desktop and on my Android device) > var theFile_ApplicationStorageDirectory:File = > File.applicationStorageDirectory.resolvePath("/swfs/welcome_16_9.swf"); > var thePath:* = theFile_ApplicationStorageDirectory.nativePath; > loader1.load(thePath); > > this works fine now after hours of research but the problem is that I > can't get access to "loader1.content", it is always null. > I need it so I can do an addEventListener: > loader1.content.addEventListener("MessageFromFlash", doSomething); > > I get the "swfLoaded" event but not the "contentLoaded" event. > > Any clues on why the loader1.content is NULL? > > Jerry > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-flex-users.2333346.n4.nabble.com/No-access-to-MX-SWFLoader-content-after-dynamic-loading-a-SWF-file-tp8928.html > To unsubscribe from Apache Flex Users, click here > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==> > . > NAML > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- *Regards,* Prashant Kumar* | *Mob.: +91 8408811225 -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/No-access-to-MX-SWFLoader-content-after-dynamic-loading-a-SWF-file-tp8928p8933.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
