Tutorial: Full Screen On Load
A rather simple thing to do. I am a beginner in flash and I was messing around with the actionscript. I was trying to do this for the last few days.
So you want to load your flash movie as a full screen application as soon as it loads without any
buttons or key pressing? Here is how ...
1. Open a new movie in Flash. I used Flash MX 2004 (v.7) for this.
2. Click the text tool and just write a random word.
3. Now right click your text and convert it to a symbol. Behavior should be set to movie clip. And click OK.
4. Make sure your text is highlighted so the action bar below should say "Actions - Movie Clip" in the title.
5. Now paste the code as follows into your actionscript for the movie clip - not the layer..
Code:onClipEvent (load) {
//Toggle Full Screen mode
if ($$fullscreen == true) {
fscommand("fullscreen", false);
$$fullscreen = false;
} else {
fscommand("fullscreen", true);
$$fullscreen = true;
}
//End Behavior}
6. Go to FILE > EXPORT > EXPORT MOVIE and save it to your desktop.
7. Go to your desktop and click the file icon and it should load in full screen.
NOTE: You can press escape to toggle out of the full screen mode.
Alternatively, you can use buttons to toggle back and forth in between full screen and normal mode as well. I prefer this method though.
Hope this helps.
___________________
Click here to buy my photographs in print ...
Last edited by Amniva, July 9th, 2006 01:38 AM (Edited 2 times)
