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