Código :
stop(); import flash.display.Stage; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.events.FullScreenEvent; import flash.display.StageDisplayState; var allFlashVars:Object = LoaderInfo(this.root.loaderInfo).parameters; var MARGIN:int = 20; var MARGINDOS:int = 3; var MARGINTRES:int = 0; if(allFlashVars.margin){ MARGIN = allFlashVars.margin; MARGINDOS = allFlashVars.margin; MARGINTRES = allFlashVars.margin; } var swfStage:Stage = this.stage; swfStage.scaleMode = StageScaleMode.NO_SCALE; swfStage.align = StageAlign.TOP_LEFT; var fullSrceenMode:Boolean = false; function resizeDisplay(event:Event = null):void { var swfWidth:int = swfStage.stageWidth; var swfHeight:int = swfStage.stageHeight; header_mc.x = 0; header_mc.y = 0; header_mc.bg_mc.width = swfWidth; header_mc.bg_mc.height = swfHeight; footer_mc.x = 0; footer_mc.y = swfHeight - footer_mc.height; footer_mc.bg_mc.width = swfWidth; fullScreen_btn.x = 0; fullScreen_btn.y = swfHeight - copyright_mc.height - MARGINDOS*2; logo_mc.y = 0; logo_mc.x = swfWidth - logo_mc.width; copyright_mc.x = swfWidth - copyright_mc.width; copyright_mc.y = swfHeight - copyright_mc.height - MARGINDOS*2; skindesign_mc.y = 0; skindesign_mc.x = swfWidth/2 - skindesign_mc.width/2; skindesign_mc.height = swfHeight; skindesign_mc.width = swfWidth; } function flipScreenMode(event:MouseEvent = null):void { if (stage.displayState == StageDisplayState.NORMAL) { stage.displayState=StageDisplayState.FULL_SCREEN; fullSrceenMode = true; } else if (stage.displayState == StageDisplayState.FULL_SCREEN){ stage.displayState=StageDisplayState.NORMAL; fullSrceenMode = false; } } resizeDisplay(); swfStage.addEventListener(Event.RESIZE, resizeDisplay); fullScreen_btn.addEventListener(MouseEvent.MOUSE_DOWN, flipScreenMode);
Justo en las líneas de skindesign_mc es dónde esta el código que necesito solucionar para que los swf's que se carguen mantengan el Stage ó no se si necesite agregar algún código a cada movie que voy a cargar, de antemano gracias por su ayuda