Jun 16 2008

Flex/Flash Fullscreen problems

Published by at 4:54 pm under AS 3.0,Flash,Flex

I have been playing with Fullscreen mode of Flash in Flex and had this annoying problem.

My listener is setup,

Application.application.stage.addEventListener(Event.RESIZE,stageResized);

private function stageResized(event:Event):void{
    mx.controls.Alert.show(Application.application.stage.displayState);
}

and then I call the function which looks as follows,

private function fullScreenFunction(rect:Rectangle):void{

    if (Application.application.stage.displayState != StageDisplayState.FULL_SCREEN){

        Application.application.stage.fullScreenSourceRect = rect;
        Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;
    }
}

Nothing wrong so far, the reason i am doing it this way is because i need to make different sections of Application full screen.

This is the function call i make, my application is 1024×768,

1
fullScreenFunction(new Rectangle(1,1,1022,766));

Above function call triggers the stageResized properly but,

1
fullScreenFunction(new Rectangle(0,0,1024,768));

doesn’t trigger the listener.

I have no clue why it does that and also i haven’t bothered to find out because that one pixel isn’t that important to me.

No responses yet

Trackback URI | Comments RSS

Leave a Reply