FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Flash movie problem





Dark-Tech
im trying to make a movie clip that goes full screen
It works when i use it in a flash player but when i try to run it in a browser it fails

The code i was working with i got from a tutorial, that wasn't completed

Code:
fscommand("fullscreen", true);

/* screen properties */
var screen = {x:System.capabilities.screenResolutionX, y:System.capabilities.screenResolutionY};

/* movie properties */
var stage = {w:Stage.width, h:Stage.height};

/* load picture */
pic.loadMovie("pic.swf");

/* determine xscale and yscale differences. Then, use the smaller value of the two as the difference to be used for both */
var a:Number = stage.w / screen.x * 100;
var b:Number = stage.h / screen.y * 100;
var dif:Number = Math.min(a, b);

/* set picture scale according to user's screen properties and it's scale difference with the whole movie */
pic._xscale = pic._yscale = dif;


does anyone know why the video won't go full screen when run through a browser

I also can't figure out how to make a on keypress method for the escape key.
m-itachi
you can to use fonction of SharedObject
m-productions
"fscommand("fullscreen", true); "
is for a projector only, not for a .swf
Related topics
My recently redeveloped Flash Movie website!
interesting flash movie
starting sound from external Flash Movie ?
Flash/Movie making software
Flash Site or No?!
Flash Movie in IE 7 Problem
Flash Snap To Grid Problem
DIV in front of Flash
creating movie-scratches
flash rss reader
flash rss reader
PHP, MySQL and Flash
What is your favourite movie?
Flash script problem
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.