all groups > flash actionscript > december 2005 >
You're in the

flash actionscript

group:

loaded movie path


loaded movie path dirkness
12/18/2005 3:24:28 PM
flash actionscript:
Hi

I'm having real problems working out the path to get a scroll function within
a movie loaded into another movie (using a movie holder) to work. Grateful for
some help.

The main movie has a movie holder with an instance name of 'approach_mc'.
This hold a movie (approach.swf).

Approach.swf has a scroll function with the following actionscript:

y = getProperty("_root.text.content", _y);
if (y<-120) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}

The _root.text.content path on the loaded movie is obviously the problem, as
it refers to the root on the loaded movie rather than the main (parent) movie.

But what should the path look like - I've tried various paths but nothing is
working.

Grateful for some advice.

Thanx

Dirk


Re: loaded movie path rickjanusz NO[at]SPAM mac.com
12/18/2005 3:49:51 PM
did you try
y = getProperty("_level0(or whatever level the content is on).text.content", _y);
if (y<-120) {
gotoAndPlay(4);
} else {
setProperty("_level0.text.content", _y, y-6);
Re: loaded movie path rickjanusz NO[at]SPAM mac.com
12/18/2005 3:53:00 PM
btw....why not have the scroller on the level it's scrolling on instead of
having scope problems. Couldn't you just place a self adjustiing scroller on
that level that adjusts no matter how large or small the content is?
AddThis Social Bookmark Button