This content has been marked as final. Show 8 replies
Removing the transparent tag from the application.xml file results in a non-transparent window, but the swf is perfectly visible!
Is this a bug in AIR or by design? How can I make the swf visible?
OS: Mac OS X.4
Replying to myself - I just found this little snippet in the documentation:
Note: The runtime cannot display SWF or PDF content in transparent windows. ( http://livedocs.adobe.com/air/1/devappsflash/help.html?content=ScriptingHTMLContainer_2.ht ml#1058666. )
Yikes! So any application using custom chrome can't use swf's?
So it's not possible to apply rounded corners on custom chrome containing flash??
From that thread:
var swfLoader = new air.Loader();
However, when I try this, I get the following error:
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
I'm trying to embed Open Flash Charts into the application.
This means that the SWF is written so that it only works when embedded in a web page. When you add the SWF to the stage as a stand-alone display object using addChild() it is not being hosted in the web page.
You have 2 options:
2) Somehow add a HTMLLoader in a new child window (with transparent = false) to the stage as a new child. I have not yet figured out exactly how to do this, so If anyone can provide information on how to do this, I too would be appreciative.
Thanks for the comments. Unfortunately I need the ExternalInterface in the SWF so removing it isn't really an option. I've also tried displaying the swf in an iframe, but to no avail. So unbelievably enough, I'm going to use canvas to display the charts that I want to show. The whole point of me using AIR was to combine swf and html...
I too am FRUSTRATED by this BUG. Just because it is a note in a reference guide doesn't mean that it isn't a bug. The fact that a supported element in an HTML page is MISSING when the HTML is hosted in transparent mode sure sounds like bug to me!
I really wish that someone from ADOBE could give use an example of how to load a second instance of HTMLLoader and add it as a new child to the stage (as I have suggested in #2 above). I believe that this should be possible.