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

  #4 (permalink)  
Old 09-07-08, 19:47
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

When I go the the link for the SWF file, It asks me to download it. What I'd do is download the file to your computer, into the same folder as your new .fla file, and make your code;

Code:
var request:URLRequest = new URLRequest("chat.swf");
var loader:Loader = new Loader()
loader.addEventListener(Event.COMPLETE, addToStage);

function addToStage(e:Event)
{
     addChild(loader);
}
See if that works :)

xInstinct
Reply With Quote