@Dano Jajajaja, oks.
Mi problema es que tengo la película (un player de video) en modo no escalable
Código :
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
Agregué también un listener al botón fullscreen:
Código :
_bFullScreen.addEventListener(MouseEvent.CLICK, toggleFullScreen);
Código :
private function toggleFullScreen(e:MouseEvent):void {
if (stage.displayState==StageDisplayState.NORMAL) {
stage.displayState = StageDisplayState.FULL_SCREEN;
} else {
stage.displayState = StageDisplayState.NORMAL;
}
resizeVideoControls();
}Aquí la función resizeVideoControls efectivamente es llamada cuando presiono el botón _bFullScreen , pero cuando el parámetro autoplay está en true , los controles de video no se redimensionan

.
Este es mi función para redimensionar los controles :
Código :
private function resizeVideoControls():void {
trace("_videoControls.width = "+_videoControls.width+ " vs. stage.stageWidht = "+stage.stageWidth);
if (stage.displayState == StageDisplayState.FULL_SCREEN) {
_videoControls.width = controlsW;
_videoControls.height = controlsH;
centerObj(_videoControls);
_videoControls.y = stage.stageHeight * .94;
}
else {
resizeObjToRectangle(_videoControls, stage.stageWidth*.72, stage.stageHeight, _videoControls.width, _videoControls.height);
centerObj(_videoControls);
_videoControls.y = stage.stageHeight * .84;
}
}
¿A alguien le ha pasado algo similar ?
Help please!