Hey Abhilash,
Call your function Say m_init() on applicationComplete event of the
application and...
private function m_init():void
{
stage/button.addEventListener(MouseEvent.Click, this.m_ClickHandler);
}
private function m_ClickHandler(e.MouseEvent):void
{
switch(stage.displayState)
{
case "normal" stage.displayState = StageDisplayState.FULL_SCREEN;
break;
case "fullScreen":
default: stage.displayState = "normal";
break;
}
}
Hope this helps..
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Stage.html#displayState
On Sun, May 1, 2011 at 8:56 AM, Abhilash Nagar <[email protected]>wrote:
> Hello again ,
>
> Thanks for the response.I tried this but nothing is happening when i press
> button.Not sure whether flex allows sending F11 from button click.
>
> Please do suggest.
>
> Abhilash
> On Sat, Apr 30, 2011 at 3:06 AM, vicky <[email protected]> wrote:
>
>> You can do something like below to dispatch the F11 key event --
>>
>> protected function
>> dispatchKeyStroke_clickHandler(event:MouseEvent):void
>> {
>> dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true,
>> false,
>> 100, 122));
>> }
>>
>> Read about fscommand here --
>>
>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/package.html
>>
>> ENJOY !
>> V
>>
>> --
>> 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.
>>
>>
> --
> 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.
>
--
Regards
Harsh Vardhan
--
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.