Dear all,
This is really weird. I have two categories of movie clips that I add to stage using addChildAt. Basically I establish which one has to go over (or “on” my english sucks) the other. I do it in this way
var numMC:Number = container.numChildren;
If (depthMC == -1){
depthMC = 0;
}
else{
depthMC = numMC;
}
container.addChildAt(DisplayObject(instance),depthMC);
where depthMC is my var to establish the depth .
The funny part is that code works well on line but in Flash works in reverse, I mean those MCs that should go over are under. With this code, it works in Flash but in reverse on line
var numMC:Number = container.numChildren;
if (depthMC == -1){
depthMC = numMC;
}
else{
depthMC = 0;
}
container.addChildAt(DisplayObject(instance),depthMC);
Any explanation for that?. Any light in this world of darkness?
Thanks