Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Flash
Macromedia Flash List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Flash :
product's home
product's list home
 
  Archived TallyList / Flash: 
Subject: Re: Setting a variable from level9 to level0
Paul Willoughby (102p/+0r)     Posted: Wednesday 25 Apr 2001
This post: 42 views, +0 rating

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


Similar Subject Line Posts (+/- two weeks of this post)
Re: Setting a variable from level9 to level0  25 Apr 2001   (30 v/ +0 r)
Re: Setting a variable from level9 to level0  25 Apr 2001 (this post)   (42 v/ +0 r)
Setting a variable from level9 to level0  24 Apr 2001   (36 v/ +0 r)
 

Send a reply to the Flash list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000