Go Back   kirupaForum > Flash > Flash IDE

Reply
 
Thread Tools Display Modes
Old 03-17-2010, 06:21 PM   #1
edward_338
Registered User
AS3 problem loading AS2 swfs

I posted earlier, but I'm not sure my post was very clear. Here it is restated:

I'm trying to build a portfolio using ActionScript 3 that imports SWFs created in ActionScript 2.

The first time one of these SWFs loads and plays everything works fine, however when I try and load a 2nd SWF into the loader, the new SWF only plays a nested mc within, not the entire movie.

I didn't build these external SWFs (I did the artwork) so I'm not sure how they were coded, but it's as if assets on the main timeline are not being seen.

I tried unload() and removeChild(), but they didn't fix the problem.

Any help is appreciated.

Here is the code:

var clipLoader:Loader = new Loader();
var url:String = "ad1.swf";
var urlReq:URLRequest = new URLRequest(url);
var url2:String = "ad2.swf";
var urlReq2:URLRequest = new URLRequest(url2);

clipLoader.load(urlReq);
addChild(clipLoader);

box0.addEventListener(MouseEvent.CLICK, resetClip);

function resetClip(event:MouseEvent):void {
clipLoader.load(urlReq2);
}
edward_338 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:00 AM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com