No need for tell target to set a variable in another MC/level:
on (release) { _level0:mixing = "normal"; } That sets the variable on _level0, so theres no need for any/: stuuf on _level0:
if (mixing eq "normal") { tellTarget ("_level6") { setProperty ("/test/control", _x, "410"); } }
That's deprecated Flash 4 syntax though. In F5 you're encouraged to use dot syntax, which is a lot less verbose in this case:
on (release) { _level0.mixing = "normal"; }
if(mixing == "normal"){ _level6.test.control._x = 410; }
hth
paul
> -----Original Message----- > From: Bill Fletcher [mailto:bill@domanistudios.com] > Sent: 25 April 2001 03:04 > To: flasher from chinwag > Subject: [flasher] Setting a variable from level9 to level0 > > > I have a base move that loads several swf's via loadmovie. I > need a button > in one of these loaded movies(level9) to set a variable in > the base movie > (level0). I can't seem to get it to work... Here is my code: > > > On the button in the movie on level9: > > on (release) { > tellTarget ("_level0") { > /:mixing = "normal"; > } > > > Then, in the base movie on level0: > > if (/:mixing eq "normal") { > tellTarget ("_level6") { > setProperty ("/test/control", _x, "410"); > } > } > > > > I can get the variable to work if it's set within the movie > on level0, but I > need to set it from the level9 movie! > > > Thanks in advance... > > -B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Chinwag site carries a wealth of Flash resources. Find useful links, suggested reading and archives at:
** http://www.chinwag.com/flasher ** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You are subscribed to flasher as: flash@tallylist.com To unsubscribe, email leave-flasher-479872H@lists.chinwag.com