setChildIndex problem
Hello,
I have a problem and I hope someone can help me with it..
I made a small preloader swf (preloader.swf) that loads greater swf file (materijal.swf). For this reason, all objects that are in "materijal.swf" are controled from "preloader.swf.
For example using the code:
MovieClip (mainLoader.content). Sah.sah1_1.addEventListener (MouseEvent.MOUSE_OVER, deoMouseOver);
The problem arises when I want to access a child, for example. "Sah1_1"
I need to put this child above others in some moment.
I tried with:
setChildIndex (MovieClip (mainLoader.content). sah.sah1_1, numChildren - 1);
All I get is error messages.
Can you tell me where I'm wrong, you can download work files from:
http://www.sendspace.com/file/muhlde
Thanks in advance.