PDA

View Full Version : Fullscreen


SollyNZ
10-28-2008, 12:03 AM
Hi there

Im having trouble getting my flash document to go full screen.

I bassically have a layer with this bit of code on it

stop();

this.onResize = function()
{
//-- Called when browser is resized.

this.video_container._x = (Stage.width / 2) - (this.txtDimentions._width / 2);
this.video_container._y = (Stage.height / 2) - (this.txtDimentions._height / 2);
};

Stage.scaleMode = "noScale";
Stage.align = "TL";
Stage.showMenu = false;
Stage.addListener(this);

this.onResize();


Then a preloader which loads the embedded video on frame 2 which then plays.

When i view this in a browser the swf does expand to 100% of the browser but the actual video doesnt.

here is an example of what happens.

http://dieloot.com/fullscreen

also here is a link to my files sorry about size.

http://dieloot.com/fullscreen/fullscreen.zip


any help would be greatly appreciated as im quite new to flash

Kind Regards
- Solly :p

Paul Ferrie
10-28-2008, 09:55 AM
I am pretty sure it should be Stage.onResize (http://livedocs.adobe.com/flash/9.0/main/00002152.html)
other fullscreen (http://www.scotflash.co.uk/blog/?p=19) options.

hope it helps