PDA

View Full Version : Movie within a movie - paths



MersauX
July 5th, 2005, 10:23 AM
It's me again. It seems a run into a whole lot of problems in recent times. This time it's a problem with a swf loaded into another swf using a "loader_mc". Within the movie which is loaded I use xml and it loads perfectly when I preview the movie alone, but when it's loaded within the "loader_mc" the xml content won't show.

I guess it is in the paths, but I just can't figure them out. In the original movie the path to the dynamic text field where the xml content is loaded is: _root.content_mc.profile_txt

Now, I have tried addressing the field with
_root.loader_mc.content_mc.profile_txt
this.loader_mc.content_mc.profile_txt
and many others, but it just won't work.

I hope someone can help. Thanks a lot!!!:)

beanSoldier
July 5th, 2005, 12:27 PM
seems like you're on the right path. no pun intended. looks to me like those paths should work.

if you're using MX04 trying putting:

this._lockroot = true;

on the first frame of the main timeline of the external fla.

MersauX
July 6th, 2005, 02:18 PM
Hmmm, still not working. I don't get it why??? Thanks for the help anyway, beanSoldier!:)

stephenr85
July 6th, 2005, 06:09 PM
i actually just had this EXACT same issue with a dynamic header i'm doing. i ended up having to through and change the paths manually. i'm somewhat of a novice on actionscript paths, so it was a bit of a task for me. generally, i just changed all of my _roots to this, and then anything that was down a level and had root, i just did _parent.

if you're loading header.swf into loader_mc, and _root now refers to _root.loader_mc, you should change your paths in the header.fla file to "this.", not this.loader_mc.

hope that helps a little...fact is, it's a pain.