I figured it out soon after sending this.
You can't trigger full screen from outside flash. It can only be
triggered by user input from within flash.
On Fri, Sep 19, 2008 at 3:04 PM, John Giotta <[EMAIL PROTECTED]> wrote:
> I'm working with a flash video player that is simliar to Youtube's
> chromeless video player. However, for some reason I continue to get
> SecurityError: Error #2152: Full screen mode is not allowed. even
> though allowFullScreen is set to true.
>
> public function interfaceFullScreen ():void
> {
> if (stage.displayState == StageDisplayState.NORMAL) {
> trace('normal to full');
> stage.fullScreenSourceRect = new Rectangle(videoChild.x,
> videoChild.y, videoChild.width, videoChild.height);
> try {
> stage.displayState = StageDisplayState.FULL_SCREEN;
> } catch (e:Error) {
> trace(e);
> }
> } else {
> stage.displayState = StageDisplayState.NORMAL;
> }
> }
>
> I'm not sure if there is something happening here with the way the SWF
> embeds (javascript string to div innerHTML) or if I'm over looking
> something.
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders