PDA

View Full Version : making a target path into a string


happypants
03-11-2007, 11:22 PM
I have a file where I've created several mcs titled "bubble"+number, like bubble1, bubble2, etc. I need to make a mc within those bubble mcs find the number of the bubble that it is in, but I don't know how to...

I apparently can't do [this._parent._parent].substr(#), so how do I make this._parent._parent into a string? some sort of this._parent._parent.mc_name type thing (replacing the mc_name with something real...)

many thanks

Cota
03-12-2007, 12:02 AM
when you create/attach the clip, you can do something like this

var myArr:Array = new Array();
myArr[ValueHere] = this.createEmptyMovieClip()//etc etc

Then the paths will be stored in the array. Is that what you're after?

happypants
03-12-2007, 07:15 AM
I feel like an idiot. Turns out the _name property exists. Wow. Sorry for wasting your time.

Cota
03-12-2007, 06:49 PM
not a waste of time if you found a solution on your own.

WebsitesinaFlash.com
03-19-2007, 03:04 AM
I had that EXACT same problem with my Flash Movie!

Thanks for posting your solution.