Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.
at flash.display::DisplayObjectContainer/removeChild()
at index_fla::MainTimeline/pequetdp()
Código:
canaltdp.addEventListener (MouseEvent.MOUSE_OVER, agrandartdp) function agrandartdp (event:MouseEvent) { canaltdp.scaleX=0.51; canaltdp.scaleY=0.51; var mitdp:Pantallatdp = new Pantallatdp(); this.addChild(mitdp); mitdp.x=886.5; mitdp.y=418.5; } canaltdp.addEventListener (MouseEvent.MOUSE_OUT, pequetdp) function pequetdp (event:MouseEvent) { canaltdp.scaleX=0.49695; canaltdp.scaleY=0.49695; var mitdp:Pantallatdp = new Pantallatdp(); this.removeChild(mitdp); }