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


Loading Single SWFs
Frame Action

In this movie, the SWF is loaded and nothing else happens. This FLA for this SWF is very simple. There is one timeline, with two frames. An empty movie clip is on both frames. To create an empty movie clip, view the Library (CTRL-L if it is not currently visible). On the upper right of the window, select "Options" and "New Symbol". Give it whatever name you wish, and be sure to select "Movie Clip" under behavior. Do not do anything else with this movie clip.

Load Movie on Frame  get this .fla


Then, return to your main timeline (CTRL-E if it is not currently visible) and drag the new movie clip from the library onto your stage (see "Positioning" above for proper placement of your movie clip). Now you need to name this instance of your movie clip. Make sure the movie clip is still selected, view the Instance Properties panel (CTRL-I if it is not currently visible) and enter a name. I have used "empty" for simplicity.

In the first frame, there is a Load Movie command. Frame Action -- Load MovieTo do this, select the frame in the timeline, and then view the Actions window (Window -> Actions, or CTRL-ALT-A). Then, under basic actions select Load Movie. At the bottom of the actions panel, enter the URL you wish to load, and the target (in this case, the movie clip "empty").

Then, the second frame contains a stop command. Please note that the stop command can not immediately follow the Load Movie command on the same frame, because such code would fail to load the external SWF. In this movie, the SWF is loaded and nothing else happens. This FLA for this SWF is very simple. There is one timeline, with two frames. An empty movie clip is on both frames. To create an empty movie clip, view the Library (CTRL-L if it is not currently visible). On the upper right of the window, select "Options" and "New Symbol". Give it whatever name you wish, and be sure to select "Movie Clip" under behavior. Do not do anything else with this movie clip.

Load Movie on Frame  get this .fla


Then, return to your main timeline (CTRL-E if it is not currently visible) and drag the new movie clip from the library onto your stage (see "Positioning" above for proper placement of your movie clip). Now you need to name this instance of your movie clip. Make sure the movie clip is still selected, view the Instance Properties panel (CTRL-I if it is not currently visible) and enter a name. I have used "empty" for simplicity.

In the first frame, there is a Load Movie command. Frame Action -- Load MovieTo do this, select the frame in the timeline, and then view the Actions window (Window -> Actions, or CTRL-ALT-A). Then, under basic actions select Load Movie. At the bottom of the actions panel, enter the URL you wish to load, and the target (in this case, the movie clip "empty").

Then, the second frame contains a stop command. Please note that the stop command can not immediately follow the Load Movie command on the same frame, because such code would fail to load the external SWF.

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
.