Some of you AIR developers out there might know that AIR doesn’t display flash inside a HTMLLoader when using a transparent window… the code below however, will fix that issue!
[as]myHTMLLoader.addEventListener(Event.COMPLETE, function(e):void {
var $doc = e.target.window.document;
if ( $doc ) {
var $embeds = $doc.getElementsByTagName(“EMBED”);
for ( var i:uint = 0; i < $embeds.length; i++ ) {
$embeds*.setAttribute(“wmode”,“opaque”);
$embeds*.outerHTML = $embeds*.outerHTML;
}
}
});[/as]