Hi @zwetan, yes I happened to work in a company that has a legacy application in Flex. I was tasked to convert it to AIR application.
I followed your article which said how one can achieve that. I also read throught a lot of resouces provided by Adobe as well:
http: // help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d9e.html
http: // AIR, HTML and SWF
After a while, I got everything to work fine by using HTMLLoader to load the ( as mentioned in one of your posts) , but what I didn’t realise is that the HTMLLoader needs Flash Plugin internally.
Due to security constraints, I cannot use ADOBE AIR 21 or lesser version (which has flash plugin internally). And flash plugin is coming to End of life in Dec 2020. So my only option was to use components like SWFLoader, Loader to load external swf file.
What I am seeing is that when I use SWFLoader, Loader, the external swf loads but the components are not rendered on the screen properly. I also observed that in the external swf file, if the width and height were set in pixels, like width=“1200” height=“800”, then it renders properly.
e.g. External swf file entry mxml.
<s:Application namespaces … width=“100%” height=“100%” creationComplete=“Created()” resize=“Resized()” addedToStage=“Added(event)” >
So I wonder why does external swf does not take the entire space ? How can it be forced to take entire space ? When I use standalone flash player, the same external swf loads perfecly fine. So how does external swf take entire space when loaded in stand alone flash player.
PLEASE help me. I shall also commit to solving problems others face when i post it here.