Mar 10 2008
About
If you haven’t yet guessed, my name is Kyle Brekke. I’m currently an undergrad English major at UC Berkeley. The major goal of this blog is to leave behind a footprint of things I’ve learned and created. I hope my essays will encourage readers to think differently about the given text and I hope my code will save people time and frustration (since I had much of both when I was learning).
Feel free to leave as many comments as you’d like. I will try to respond to any and all contact as well as make corrections and improvements wherever necessary.
Thanks,
Kyle Brekke
Popularity: unranked [?]
I need help. I’d greatly appreciate it if you can.
I placed this code (see below) in the first frame of the .fla for a swf file, modified the HTML so that if allowed fullscreen automatically without having to click anything. I must be missing something. I appreciate whatever suggestions you may offer.
My understanding on this code is that I don’t need to place this on the flvplayback. It should open the whole page (swf file) fullscreen. I have an walkon host .flv (alpha channel video) buried down in the file.
Thanks,
Daniel
======
FROM: http://flashdevelopment.wordpress.com/2008/04/28/full-screen-in-actionscript-3/
=====
George,
You’re probably right. You should be able to do this:
function goFullScreen():void
{
if (stage.displayState == StageDisplayState.NORMAL) {
stage.displayState=StageDisplayState.FULL_SCREEN;
} else {
stage.displayState=StageDisplayState.NORMAL;
}
}
stage.addEventListener(Event.ENTER_FRAME, _handleEnterFrame)
function _handleEnterFrame(event:Event):void
{
goFullScreen();
}
Just make sure that you stop your Flash movie from looping around or it will loop around and keep trying to full screen or un-full screen
bmorrise said this on May 19, 2008 at 8:17 am
Hey alpha guy,
You won’t be able to achieve exactly what you are looking to do….
“The ActionScript that initiates full-screen mode can be called only in response to a mouse click or keypress. If it is called in other situations, it will be ignored (in ActionScript 2.0) or throw an exception (in ActionScript 3.0).”
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
Sorry