I have a movieClip instance named belt_lines_still added to another movieClip named mainBkgnd, all stored in a swf file. Even though I can access all the other children of mainBkgnd, for some reason I can’t access belt_lines_still.
To diagnose the problem I used these lines:
trace(mainBkgnd.getChildAt(3).name==“belt_lines_still”,Type.getClassName(Type.getClass(mainBkgnd.getChildAt(3))));
trace(“childIndex=”+mainBkgnd.getChildIndex(belt_lines_still)+" "+(belt_lines_still!=null));
That returned:
true,openfl.display.MovieClip
childIndex=-1 false
Can someone explain what’s going on?