[thelist] ActionScript: Finding out a clip's name

Erik Mattheis gozz at gozz.com
Mon Aug 27 05:38:26 CDT 2001


At 6:06 PM +0930 8/27/01, Nick Boyce wrote:
>In order to do things like bring it to the front when dragging and set the
>URL link for each one, each movie clip must be aware of it's name.

You don't have to set it, just use the property _name.

Not sure what your function looks like, but it sounds like _target 
might a more useful variable ... or if you want to bring a duplicated 
movie clip to the front, and you have set the level of a series of 
movie clips with a variable current_level, try

on (press) {
   this.swapDepths(_parent.current_level);
}
-- 

__________________________________________
- Erik Mattheis

(612) 827 3963

Humility is no substitute for a good personality.
      - Fran Lebowitz
__________________________________________




More information about the thelist mailing list