The following works for me:
import mx.utils.Delegate;
import flash.geom.Rectangle;
function fsClickHandler(o:Object):Void {
trace("Application ::: fsClickHandler");
var rect:Rectangle = new Rectangle(0, 0, 640, 480);
Stage.fullScreenSourceRect = rect;
Stage.displayState = "fullScreen";
}
fullscreen_btn.addEventListener("click", Delegate.create(this, fsClickHandler));
http://muzakdeezign.com/downloads/as2_fullscreen/fs640x480.html
http://muzakdeezign.com/downloads/as2_fullscreen/fs640x480.zip
----- Original Message -----
From: "carlos varner" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Sunday, November 23, 2008 10:34 PM
Subject: Re: [Flashcoders] full screen rectangle issue
Could someone take a quick look at http://venturawave.com/test.html and
see if you can catch why the rectangle isn't working. I commented the
actionscript into the html.
On Sun, Nov 23, 2008 at 9:44 AM, carlos varner <[EMAIL PROTECTED]> wrote:
Hello... I've got flash player 9 working but no luck getting only
the rectangle to go fullscreen. Also unsuccessfully tried it with version
10. carlos
On Sun, Nov 23, 2008 at 9:08 AM, Hans Wichman <
[EMAIL PROTECTED]> wrote:
are you testing in the player version 9?
On Sun, Nov 23, 2008 at 5:42 PM, carlos varner <[EMAIL PROTECTED]>
wrote:
> I keep getting full screen based on the entire stage but not my 640x480
> rectangle. I gotta be missing something? I'm using actionscript 2 with
> flash
> 8 and the example at
>
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode_03.html
> thanks.... carlos
>
> import flash.geom.Rectangle;
> goFullscreen_mc.onPress=function(){
>
> var screenRectangle:Rectangle = new Rectangle();
>
> screenRectangle.x = 0;
>
> screenRectangle.y = 0;
>
> screenRectangle.width=640;
>
> screenRectangle.height=480;
>
> Stage["fullScreenSourceRect"] = screenRectangle;
>
> Stage["displayState"] = "fullScreen";
>
> }
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders