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
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.
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.
