Thread: [Actionscript 3] loading extern .swf
View Single Post

  #6 (permalink)  
Old 09-07-08, 20:27
xInstinct's Avatar
xInstinct xInstinct is offline
Flasher
 
Join Date: Jun 2008
Location: Texas
Posts: 42
Rep Power: 0
xInstinct is on a distinguished road
Send a message via AIM to xInstinct
Re: loading extern .swf

Ugh, sorry, I didn't have all the necessary code....

Code:
import flash.display.*;
import flash.net.*;
import flash.events.*;

var ldr:Loader = new Loader();

var url:String = "chat.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, addMe);
ldr.load(urlReq);

function addMe(e:Event)
{
    addChild(ldr);
}
That should be much more stable

Lemme look at the resizing...

xInstinct
Reply With Quote