all groups > flash (macromedia) > july 2006 >
You're in the

flash (macromedia)

group:

Loaded Movie


Loaded Movie Svedish_PIRATE
7/19/2006 9:46:48 PM
flash (macromedia):
Greetings everyone...

I have another issue. I've got a movie loading into another movie:

http://studenthome.nku.edu/~wester/SITEtester.swf < Main - from menu
[quoted text, click to view]
http://studenthome.nku.edu/~wester/sitenkumark2.swf < Loaded

The 2nd file, by itself, works.
Loaded into the first file only partially works.

Isn't targeting in a loaded movie clip independent of the main .swf?

Thanks
Re: Loaded Movie urami_
7/20/2006 12:00:00 AM


[quoted text, click to view]

That depends;
If you load movie in movie clip holder than your movie start to share the timeline
with the host swf file. So any action using _root prefix will automatically be mismatched
to its target.
For example your loaded movie uses _root.MCName.gotoAndPlay(123);, once loaded in
HOLDER mc the action should change to _root.HOLDER.MCName.gotoAndPlay(123);

The timelines remain independent and contain their own root if you load your content in
level not in target.

Now, there is two ways to fix it. Either adjust all the paths before loading, which
can be tedious while doing testing, or lock the root to particular timeline using
_lockroot

Let me paste from help files details on _lockroot:

You can use _lockroot to target content as a way to solve the scoping issues sometimes associated
with the inappropriate use of _root. Although this solves many problems with applications, consider
_lockroot as a work-around for problems caused by using _root. If you experience problems loading
content into a SWF file or a component instance, try applying _lockroot to a movie clip that loads
the content. For example, if you have a movie clip called myClip loading content, and it stops
working after it is loaded, try using the following code, which is placed on a timeline:

this._lockroot = true;




--
Regards

Urami


--



Happy New Year guys - all the best there is in the 2006 :)




<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: Loaded Movie Svedish_PIRATE
7/20/2006 3:01:19 AM
Urami,

[Q]
For example your loaded movie uses _root.MCName.gotoAndPlay(123);, once loaded
in
HOLDER mc the action should change to _root.HOLDER.MCName.gotoAndPlay(123);
[/Q]

Thank you. I salute you.
AddThis Social Bookmark Button