Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-24-2006, 03:51 PM   #1
bradb1920
bradb1920
 
Join Date: Jul 2005
Posts: 28
Send a message via MSN to bradb1920
Default External .swf loaded into main .swf

Hello,

I have an external .swf "biography.swf" loading into my main movie. When I test the biography.swf before loading it into the main movie, it works fine. But when loaded into the main movie, it loads OK but the movieclip within the biography.swf does not work.

I'm using:
on (release) {
_root.createEmptyMovieClip("container", 1);
loadMovie("Biography.swf", "container");
}

Any thoughts on why the movie clips in the Biography.swf are not working?

Thanks.
bradb1920 is offline   Reply With Quote
Old 03-24-2006, 04:47 PM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

You must have references to _root in your biography movie, which wrongly point to the root level of your main movie, when biography.swf is loaded in a container clip.

Assuming you're on MX2004 at least, make sure you're using AS2.0, and add the following, on the first frame and as the first code line in your biography.fla...

this._lockroot = true;

http://livedocs.macromedia.com/flash...=00001522.html
oldnewbie is offline   Reply With Quote
Old 03-24-2006, 04:51 PM   #3
bradb1920
bradb1920
 
Join Date: Jul 2005
Posts: 28
Send a message via MSN to bradb1920
Default

You just made my day.

Thanks.
bradb1920 is offline   Reply With Quote
Old 02-19-2008, 01:35 PM   #4
cjkeeme
Registered User
 
Join Date: Jan 2008
Posts: 4
Default

Thank you for this resolution. It was perfect.
cjkeeme is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loadvariableNum inside a loaded .swf problem !!! Batu ActionScript 1.0 (and below) 1 06-23-2005 12:33 PM
External .swf problems bkohsl Simple Stuff (Newbies) 1 06-17-2005 04:57 AM
Controling the main timeline from an external loaded movie clip? Jason PocketLab ActionScript 2.0 5 03-12-2005 03:25 AM
Can I make an external swf not start playing until it's fully loaded? hwormser ActionScript 2.0 1 07-26-2004 02:34 PM
Get the load progress of an external swf from main movie Brent ActionScript 1.0 (and below) 1 02-22-2001 10:16 PM


All times are GMT. The time now is 08:16 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.