I’m trying to refer to several nested MovieClips within a container, but I want to use a simple indicator of an Event to tell what one should be modified. I don’t understand what I’m doing wrong, here is the code:
HUD.weaponSlot*.overlay.visible=false;
Going through debug I can see that it sets i to the proper value, and if I exchange the whole line for
HUD.weaponSlot1.overlay.visible=false;
it works perfectly… I don’t understand why the first one isn’t working?
PS: The error I get is telling me I can’t find the object specified… when clearly it can find it when I take our the *…
Any know what might be up?