SecurityError: Error #2152: Full screen mode is not allowed.

868 views
Skip to first unread message

Rahul Sood

unread,
Jun 19, 2008, 5:48:52 AM6/19/08
to flex_...@googlegroups.com
Hi Fellow Flexers,
 
Please take a look at this link http://the.fontvir.us/pv3d/tieTheKnot/ 
It shows a beautiful way to Full-Screen your application.
I am trying to achieve this without success.
 
I am trying to RUN my application in Browser in FULLSCREEN MODE, but getting the above error when I press the Button.
SecurityError: Error #2152: Full screen mode is not allowed.
I am using the FULLSCREEN event.
 
stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenRedraw);
Getting this Runtime-error when I include the above statement. (I am already importing the reqd libraries from flash)
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Is this supported in Flex 3 ?
 
Would be grateful if someone can help,
 
Best Regards,
Rahul.

--
"Learning is not necessary, neither is survival"

Saravanan

unread,
Jun 19, 2008, 8:08:31 AM6/19/08
to Flex India Community
HI Rahul where you are adding the listener??


creationComplete
applicationComplete


bcoz the stage will be available in applicationComplete event...
thats y they are using timer to add stage listener... so its better to
use Stage Class in applicationComplete Event...


will it helps you ??

~sara~
http://sara-intop.blogspot.com





On Jun 19, 2:48 pm, "Rahul Sood" <rahulsoo...@gmail.com> wrote:
> Hi Fellow Flexers,
>
> Please take a look at this linkhttp://the.fontvir.us/pv3d/tieTheKnot/
> It shows a beautiful way to Full-Screen your application.
> I am trying to achieve this without success.
>
> I am trying to RUN my application in Browser in FULLSCREEN MODE, but getting
> the above error when I press the Button.
> *SecurityError: Error #2152: Full screen mode is not allowed.*
> I am using the FULLSCREEN event.
>
> stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenRedraw);
> Getting this Runtime-error when I include the above statement. (I am already
> importing the reqd libraries from flash)
> *TypeError: Error #1009: Cannot access a property or method of a null object
> reference.*
> Is this supported in Flex 3 ?
>
> Would be grateful if someone can help,
>
> Best Regards,
> Rahul.
>
> --
> *"Learning is not necessary, neither is survival" *

Rahul Sood

unread,
Jun 19, 2008, 1:59:09 PM6/19/08
to flex_...@googlegroups.com
Thanks Sara,
 
It helped..n so did a post from Raghu.
 
1) You are right, the event has to be applicationComplete
2) Then we need to change the index.template.html to get rid of the Security Error -
"allowFullScreen","true",
<param name="allowFullScreen" value="true" />

Best Regards,
Rahul.
Reply all
Reply to author
Forward
0 new messages