Error Message:
| Scene 1, Layer 'Layer 1', Frame 1, Line 20 | 1119: Access of possibly undefined property L0Dup through a reference with static type flash.display:DisplayObject. |
L0Dup is always visible, thus playing.
here is the function that creates "layer1" and more.
function createLayerBoxes()
{
for (var i:int = 0; i < NUM_LAYERS; i++)
{
var box:Box = new Box( i + 1 );
box.y = (box.height + LAYER_SPACING) * i;
box.name= "layer" +( i + 1);
box.buttonMode = true;
box.addEventListener( MouseEvent.MOUSE_DOWN, onLayerPress );
box.addEventListener( MouseEvent.MOUSE_UP, onLayerRelease );
addChild( box );
_boxes.push( box );
}
so, flash doesn't know you boxes can be displayobjectparent class objects. if all the other potoential issues i listed in message 3 do not apply, use:
layerMenu.duplicateMov(LHolder.L1Holder, Box(layerMenu.getChildByName("layer1")).getChildByName("L0Dup"));