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: Variable GetProperty
Paul Willoughby (102p/+0r)     Posted: Wednesday 25 Apr 2001
This post: 44 views, +0 rating

There are lots of ways to do this. Any one of the following works if the code and the clip are on the main timeline:

count = 1; // get property syntax trace(getProperty("menu" add count, _y)); trace(getProperty("menu" + count, _y)); // targeting using the array access operator [] // actually the line below works on any timeline, as long as the clip and code are both there trace(this["menu" add count]._y); trace(_root["menu" add count]._y); trace("_level0["menu" add count]._y); // you can copy part or all of the target path into a variable path = _root; trace(path["menu" add count]._y); // if you copy all of it you don't need any [] to get the property target = _root["menu" add count]; trace(target._y);

So the first line you wrote should work. Do you have the correct path to the movie clip?

paul

> -----Original Message----- > From: Ilja Goossens [mailto:ilja@ilja.com] > Sent: 25 April 2001 11:39 > To: flasher from chinwag > Subject: [flasher] Variable GetProperty > > > > Hi do I make a GetProperty variable? > This is what I've tried so for: > > getProperty("Menu"+count, _y); > getProperty("Menu"&count, _y); > > And I've tried to declare the MC name in a variable and then > evaluating the > property. > > I thought I knew how to do this ;( > > Ilja

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: Variable GetProperty  25 Apr 2001   (39 v/ +0 r)
Re: Variable GetProperty  25 Apr 2001   (29 v/ +0 r)
Re: Variable GetProperty  25 Apr 2001 (this post)   (44 v/ +0 r)
Variable GetProperty  25 Apr 2001   (30 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