-
Is this such a tough question to answer?
My swf file(embedded in html page) is not showing up in my AIR application.
Someone who is facing the same issue has explained it in detail. Please refer below:
http://stackoverflow.com/questions/1...yed-inside-air
People have raised similar issues in various different forums, but no one has answered yet.
Please help
-
My project is on hold because of this problem.
Someone please respond.
-
Senior Member
you can try and use this trick to inject empty sprite into text field with your html and use it to addChild the Loader with your swf. not sure if HTMLLoader would allow this but try EDIT in fact, it is probably browser-based and so not supported. Well see if you can get away with text field based app.
Last edited by realMakc; 06-03-2013 at 06:50 AM.
-
Good to see someone replied
I dont think it will work out, since I am using htmlLoader.load() instead of htmlLoader.loadString()
Or may be I have not got your point, but thanks for your help.
Last edited by truth_seeker; 06-09-2013 at 10:17 AM.
-
Senior Member
Have you read and followed this?:
http://help.adobe.com/en_US/as3/dev/...5EEFB2467.html
According to it a swf inside an html file will not be displayed if the wmode is set to window, while the NativeWindow object has enabled transparency.
-
I am not using transparency in my htmlLoader.
Have also tried both wmode - transparent and opaque
No luck
-
Senior Member
So you have placed the swf in the application directory and made sure that it's referenced like in the article?
-
No.
The swf is embedded inside html page that is loaded from an external link.
Please refer to the stackoverflow link I posted above. I am facing the same issue as described in that link
-
Senior Member
Then perhaps there are some security restricitons in air. If it displays "movie not loaded", it is usually because it cannot load the movie.
What version of air are you using?
Perhaps you can try to load the external SWF with AS that is on the device.
Last edited by somlemeg; 06-10-2013 at 10:01 AM.
-
AIR version 3.7
The external SWF file loads variables from php files(using relative path) that is hosted in the same domain. So even if I load the external swf using the Loader() Class, I think it fail to load the php variables.
And what if this external swf runs on AS2? Will that be a problem?
Last edited by truth_seeker; 06-10-2013 at 11:05 AM.
-
Senior Member
I don't think that is a problem, you can load an AS2 file from AS3, but not an AS3 file to AS2.
I have little experience from adobe air. If I where you I would start by trying to debug the problem by embed a simpler swf from the app directory. If that works, embed a simple swf from the server, and so on, to see where the problem may be and perhaps make it easier to find a solution.
EDIT: the external SWF's loaded into an SWF on IOS does not seem to support code in them.
http://blogs.adobe.com/airodynamics/...r-apps-on-ios/
Last edited by somlemeg; 06-10-2013 at 11:36 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|