flash animation video tutorials

 

 

 

 

 

START LEARNING
FLASH NOW

Get instant access to over
45 minutes of FREE Flash tutorials on video
 and our newsletter.

Name:
E-Mail:

.

.

.

 
Web video-animation.com

.

.

flash tutorials flash tutorials flash tutorials flash tutorials

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.
1. Create a new Flash 8 file, calling it index.fla.
2. Drag down a ruler to the y value of 50. This is to set the navbar across the top and it remains there at all times. Other pages get loaded into _level2 and all of their content is below the navbar. You can make your navigation to the side if you like, just make sure your content of other pages fits into the correct section.
3. You can design your interface for the website, but remember where things are going to go.

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.
5. Create a new flash 8 file and call it intro.fla. This will be the content for the home page that will be replaced by subsequent pages. It will be loaded initially using an onLoad function for the first time and thereafter by the home button.
6. Create a new flash 8 file called page2.fla. Put the content on it, below the navbar of course.
7. Create new flash files for page3.fla, page4.fla. Same as part 6. Create .swf files for all those flash 8 files

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.
Go to Publish Settings and check the .html file to be published and check the settings are what you want. Click on publish.
Open the index.html file in your browser and see if everything is working.

Flash 8 Resources

.

.

flash 8