I'm creating an Air Desktop Application. I've compiled an SWF file from FLA, using Flash Player 10, ActionScript 3.0.
I'm now trying to pull the SWF into my desktop application using mxml through FlashDevelop.
However, whenever I run my application, my mxml runs correctly, but the SWF is no imported as I expect; I receive a blank white screen, although the dimensions appear to be correct.
Here is my mxml code which I have changed from the default generated by FlashDevelop:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:SWFLoader width="950" height="500" source="..\..\..\bin\Gameseed.swf" />
</mx:Application>
Original code (as generated by FlashDevelop):
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</s:Application>
I read somewhere that SWFLoader is only intended to be used for minor user interaction and animations; my SWF is just a background image with a button, so I'm not sure if this would be an issue in future when I begin adding more movie clips such as multiple screens...
Thanks