if(stage.displayState == StageDisplayState.FULL_SCREEN){
 Trace("it is fullscreen");
}

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Alexander
Farber
Sent: woensdag 17 februari 2010 13:52
To: Flash Coders List
Subject: [Flashcoders] Detecting if full screen mode is allowed before
setting it

Hello,

is it possible to detect, if a full screen mode is allowed before calling
  stage.displayState = StageDisplayState.FULL_SCREEN;  ?

I have the same .swf file embedded at several sites including Facebook
(and there for some reason you can't do full screen unless
using their iframe mode. My non-iframe app is at
 http://apps.facebook.com/video-preferans/ ) and would like to
hide my fullscreen-button if the full screen mode isn't allowed.

Or do I have to set stage.displayState to FULL_SCREEN
myself, catch the eventual exception, then reset displayState back?
Seems awkward to me, but I can't find a better way yet.

Thank you
Alex
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2692 - Release Date: 02/16/10
20:35:00

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to