- Designing Your Web Site to Be Modular
- Loading Movies or JPGs
- Task: Use Load Movie
- Determining When a Movie Is Fully Loaded and How to Unload It
- Task: Determine Whether a Movie Is Fully Loaded
- Shared Library Items
- Task: Prepare Items to Share at Runtime
- Task: Start Using a Shared Item
- Task: Update Shared Items in a Library
- Task: Share a Font During Runtime
- Linked Scripts
- Summary
- Q&A
- Workshop
Q&A
I've created the submovies that I intend to load into my main movie via loadMovie. I've saved them all in the correct folder, but when I test the main movie I get the error Error opening URL "c:\windows\desktop\somefolder\ submovie.swf" in the output window (and my movies don't load). What's going on?
Most likely, when you made your various submovies, you saved them correctly, but you need to take the extra step of exporting them as an .swf (simply do a Test Movie). Only .swfs or .jpgs can be loaded using loadMovie.
My Web site is getting pretty messy with all the little submovies and .jpgs in the main folder. Is there a way I can keep the movies that load in a separate folder to keep everything straight?
Yes. When you specify (in the URL field of loadMovie's parameters) the movie you want to load, if you simply type mymovie.swf, Flash will look for mymovie.swf in the same folder. If you want to store mymovie.swf in a subfolder called "movies," you would change the URL field to read movies/mymovie.swf. (By the way, you can use all the standard HTML relative references as well, such as "../" to mean "up one folder.")
If I know I'm going to use a Shared Library item in a project, but I don't actually have the master media elements (such as the bitmaps I want to share). Is there any way I can start now?
Sure. Bitmap items properties dialogs have two buttons"update" and "import"which let you re-import (and replace) a previously imported bitmap. The particular scenario (of wanting to work without the final artwork) is explored in a task coming up in Hour 22 involving so-called "authortime sharing" (compared to this hour's runtime sharing examples). You may want to explore that task because it should help you fully understand the difference between authortime and runtime sharing.