no its not possible because of adobes restriction and rightly so...

On Wed, Feb 2, 2011 at 6:01 PM, Prasanna <[email protected]> wrote:

> Is it possible to make a flex application to switch to full screen
> mode without any user interactions (Keyboard,Mouse) events.
>
> Here is the piece of code
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
>                                applicationComplete="toggle()">
>        <mx:Script>
>                <![CDATA[
>                        import flash.display.StageDisplayState;
>                        private function toggle():void{
>                                if(fs.selected == true){
>                                        this.goFullScreen();
>                                } else {
>                                        this.exitFullScreen();
>                                }
>                        }
>
>                        private function goFullScreen():void {
>                                stage.displayState =
> StageDisplayState.FULL_SCREEN;
>                        }
>                        private function exitFullScreen():void {
>                                stage.displayState =
> StageDisplayState.NORMAL;
>                        }
>                ]]>
>        </mx:Script>
>
>                <mx:CheckBox label="Full Screen" id="fs"
> click="this.toggle()"
> selected="true"
>                                         horizontalCenter="0"
> verticalCenter="0"/>
> </mx:Application>
>
> Its works fine on CheckBox click events. But not when the application
> loads for the first time.
> Get me some suggestions..!
>
> Best Regards,
> Prasanna
> RIA Learner.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to