|
||||||||||||||
. . . . . |
Create a Flash 8 Website using Loadmovie
This video tutorial shows you how to create a flash 8 website using the loadMovie method. I have made the stage 500x400 but that is just for demonstration purpose, so make yours 800x600, or 700x400 or whatever the latest standard browser size is.
Flash Tutorials in Video Format -
Watch them now at LearnFlash.com
4. Make Buttons for the navigation bar. And give the buttons instance names. I called mine home_btn, page2_btn, page3_btn and page4_btn. Call them what you like.
8. Go to index.fla and put the code on the actions layer, frame 1.
stop(); // I always put this in even if not needed.
// first time it gets loaded
this.onLoad = function(){
loadMovie("intro.swf",2);
}
// home button
home_btn.onRelease = function(){
// clear _level2
unloadMovieNum(2);
loadMovie("intro.swf",2);
}
// page 2 button
page2_btn.onRelease = function(){
// clear _level2
unloadMovieNum(2);
loadMovie("page2.swf",2);
}
// page 3 button
page3_btn.onRelease = function(){
// clear _level2
unloadMovieNum(2);
loadMovie("page3.swf",2);
}
// page 4 button
page4_btn.onRelease = function(){
// clear _level2
unloadMovieNum(2);
loadMovie("page4.swf",2);
}
Test it and debug if something is not working. You may want to put a different intro.swf for the first time loaded. Sometimes onLoad gets a bit buggy.
Flash 8 Resources. . |
|
||||||||||||
|
. | Home | Flash MX | Actionscript 2.0 | Flash 3D | Flash 8 | Flash Database | Flash Mobile | Flash CS3 | Java For Kids | Video Course | General Video | Photoshop | Web Design | Digital Photography | Games | free backgrounds | Resume | Streaming Video | Students Work | Links | Contact me | sitemap | reviews | . . |
||||||||||||||