At a quick glance, one thing is you have:
areaLoader_mc
in one statement and
areaLoader
in another...
Also, if your array has "myClip.myOtherClip" - I don't think array
access will work that way and translate "." for you. You would have to
do:
this[array[3]][otherArray[6]]
Also:
thisRoot.areaLoader.text_area_array[1]
Does not work that way, you're saying in the above that
"text_area_array" is a property of areaLoader, when it's really an array
somewhere else. So instead, do:
thisRoot.areaLoader[text_area_array[1]]
or if I found your typo correctly, it would be:
thisRoot.areaLoader_mc.text_area_array[1]
Jason Merrill
Bank of America
GT&O L&LD Solutions Design & Development
eTools & Multimedia
Bank of America Flash Platform Developer Community
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Marcelo Wolfgang
>>Sent: Wednesday, January 23, 2008 2:06 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Problem targeting a movieclip
>>
>>Hi list,
>>
>>I'm trying to access multiple movieclips that path names are
>>stored in an array, this array is populated with the names
>>when an area load and its cleaned when an area unload.
>>
>>Here's the code I have so far:
>>
>>trace(thisRoot.areaLoader_mc.txt_galeria_mc); // if I delete
>>this the next one traces undefined
>>trace(thisRoot.areaLoader_mc.txt_galeria_mc.txt_img05_mc); //
>>this is the full path, it works
>>trace(text_area_array[1]) // txt_galeria_mc.txt_img05_mc (is a string)
>>
>>what I'm trying to do
>>
>>trace(thisRoot.areaLoader.text_area_array[1]) // undefined
>>trace(eval('thisRoot.areaLoader.'+text_area_array[1])) // undefined
>>
>>Can anyone help me figure out how I can target my mc so I can
>>run some stuff on it?
>>
>>TIA
>>Marcelo Wolfgang
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders