PDA

View Full Version : Dnyamic MC targeting...


maxx
04-18-2005, 05:35 PM
Ok, I don't get it. I have a movie (_level0) that loads a movie, which then - in turn - loads another movie. The top-level movie starts with the folllowing code _level0.hlpLvl = this; When I trace the value of "hlpLvl" from _level0, I get "_levl0.placer.placer", as expected.

Now, on to the fun - I use the line _level0.placer.placer.gotoAndPlay("hint"); in my code (on _level0) and it works perfectly. However, the line [hlpLvl]gotoAndPlay("hint"); sends my .swf off into the nether regions. Remember, by this point the variable hlpLvl contains the value "_level0.placer.placer". I have been staring at this project way too long by this point, and this is about all I need to finish - got like 9 movies that need to set the hlpLvl variable to enable context-sensitive help, and now I can't fingure out why it won't run correctly.

Anybody have any ideas at all? Please?

Xeef
04-18-2005, 06:17 PM
did you try

level0[hlpLvl]gotoAndPlay("hint");

maxx
04-18-2005, 06:22 PM
Tried it. No dice - the clip actually doesn't do anything when this approach is used. I'm really afraid at this point that I'm going to have to hard code evey path to the movies and call them from that. Which is what I was hoping to avoid by passing "this" to the function to begin with...

Oh well - thanks anyhow for trying, Xeef - I appreciate it greatly.