WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Flash 5 Load Movie Basics


Button Action -- Simple

Taking this previous example one step further, let us apply the Load Movie command to a button, so we can choose when to load the animation. So, in this example, the movie waits until the user clicks the Load button to load the animation.

Load Movie on Button  get this .fla


To add the Load Movie action to a button, select the button and view the Actions window. Under "Basic Actions", select "On MouseEvent". I have chosen On Release, meaning that this action is executed on mouse up. Then, select the Load Movie command in the same Basic Actions list and fill in the appropriate information at the bottom of the Actions window.

Once the user clicks the "Load" button, the Flash player runs the Load Movie command and then proceeds to the frame "unload" as indicated by the ActionScript. Now, the button changes to "Unload" and now has an "Unload Movie Clip" command. The Unload Movie command is directly beneath the Load Movie command in the Basic Actions list. All you have to do is enter the target. Click the "Unload" button in the SWF, and you will notice the animation disappear.

Loading Multiple SWFs
Button Action -- Load Multiple SWFs into Multiple Movie Clips

Load Movie -- Many SWFs into Many MCs  get this .fla


Building directly on top of the previous example, let's say that we have six different movies to load. And, we need to be able to view all six simultaneously. This means that we need to create 6 copies of that "load/unload" button and 6 empty movie clip instances (just drag the movie clip from the library on to your stage six times - you do not need to create 6 separate movie clips in your library), with 6 different instance names ("empty1", "empty2", etc). Each load button loads an animation into the corresponding empty movie clip. And, as in the previous example, when the "load" button is clicked, it becomes an "unload" button, which empties the appropriate movie clip and returns the button to its default "load" state.

 

 

 

Back Back to previous

 

.

 

More Resources
An Introduction to Flash
Embedding Flash Movies
Creating Dynamic Soundtracks with Flash
Creating Dynamic Soundtracks with Flash Part II

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.