PDA

View Full Version : full screen option like in You-Tube


arun vallappan
09-29-2007, 02:48 AM
Hi,
i am developing a you-tube kinda application.
like in you-Tube, i want to see the video in full screen( just the video ).
now, i am able to switch the whole application to fullscreen mode,
using the following code..(its working perfectly)

private function toggleFullScreen():void {
try {
switch (Application.application.stage.displayState) {
case StageDisplayState.FULL_SCREEN:
Application.application.stage.displayState = StageDisplayState.NORMAL;
break;
default:
Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;
break;
}
} catch (err:SecurityError) {
// ignore
}
}

but how do i take just the video player to full screen??

Thanks in advance
arun