I am using the free version at this time.
Code: Select all
<mx:SWFLoader id="Doc" source="@Embed(source='Print2FlashDoc.swf')"/>
Code: Select all
<mx:SWFLoader id="Doc" source="Print2FlashDoc.swf"/>
Code: Select all
<mx:Image source="assets/Print2FlashDoc.swf"/>
Code: Select all
//////////////////////////////////////////
// Loading to a container
//
private var container:Sprite;
private var pictLdr:Loader;
public function loaderExample2():void
{
container = new Sprite();
addChild(container);
pictLdr = new Loader();
var pictURL:String = "assets/print2flashfile.swf"
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
pictLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);
}
function imgLoaded(e:Event):void
{
container.addChild(pictLdr.content);
}
BTW, persistent login option of the forums doesn't seem to be working either =(