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
What is your favourite movie?
creating movie-scratches
flash rss reader
flash rss reader
My recently redeveloped Flash Movie website!
PHP, MySQL and Flash
Flash Site or No?!
Flash script problem
interesting flash movie
Flash Movie in IE 7 Problem
starting sound from external Flash Movie ?
Flash Snap To Grid Problem
Flash/Movie making software
DIV in front of Flash
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.