This is my first post and I want to share the code for the full screen flash app.
This code works fine in ActionScript 2.0 so you can use it in your old and new projects as well.
So this is the code you need to use:
function toggleFullScreen(){ if(Stage["displayState"]=="normal"){ Stage["displayState"]="fullScreen"; }else{ Stage["displayState"]="normal"; } } fullScreenBtn.onRelease = function(){ toggleFullScreen(); } |
And from here you can download the source files
that is great man …
thank you for sharing..
harpal
I’m new to actionscript but I think it would be nice if you could also right click, while in full screen mode, and have the option to return to normal size. This might make it easier for people that forgot what key to hit, or weren’t paying attention when the instructions were displayed on the screen.
Just a suggestion
T.
you can use the toggle function where ever you want
you can learn how to make a right click menu on gotoandlearn.com video player tutorials series
the simple way to do this is:
What exactly does the Javascript file included do? Very nice work by the way!
the JavaScript file is for the ActiveX problem in IE 😉
Thax for sharing!!! Bravo!
what do I need to make this work?!.
when I press on the Btn nothing happens, do I need to place it somewhere?
Does it works in all browsers, and will i toggle over all the screen?
thx.
Hey what!
You need Flash Player 9 in order for this to work…
thanks for sharing your work! 🙂
hi, I have used the above code exactly as you have and it doesn’t seem to work, would you know if there’s any other code I might have that would conflict with this as i cannot work it out… thanks for sharing it
Chris
you need at least flash player 9 if you want this to work 😉
sorry, I found it, you just have to change the html to allowFullScreen – true
thanks again,.
What about sites like this, any one has an idea on how I could make it happen to have a such full screen, with object alined right on the edges and have it work the same way on both PCs screens and macs?
http://www.dolcegabbana.com/diamonds-and-pearls/#/a3Evi
@rom – you can use Stage.align = “TL”; for that…