PDA

View Full Version : Loading Movie Clips from the library


Big_Rich1
10-25-2006, 02:06 PM
I'm building a project which features an empty movie object over a background image, which I would like to load separate movieclip objects into from the library. The idea is that the projector starts with the first movieclip already in the viewer, when the movieclip finishes I want it to then load the next clip into the empty movieclip viewer.

The movieclips are in the library and not external so I've tried the LoadMovie script but that only seems to work with separate swf files stored online.

Can anyone help? If you need me to explain anything further that's no problem.

Thanks in advance.

anonymous
10-25-2006, 02:33 PM
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary508.html

roamingBobert
10-25-2006, 02:36 PM
use 'attachMovie' to load things from the library - ie not external...

Big_Rich1
10-29-2006, 10:02 AM
Thanks guys.

I still need a bit of help. Assume that I want to load the movieclip into an empty movieclip on the main timeline. The empty clip is called MainViewer and the clips to be loaded into it are called 1a, 1b, 1c and so on. MainViewer starts empty and then loads 1a into it. When 1a finishes it should load 1b in its place.

On the main timeline I've put the code:

MainViewer.attachMovie("1a");

which Flash says is correct. I also used MainViewer.attachMovie("1b"); in the last frame of the 1a clip.

The problem is, none of it is working. Where am I going wrong?

anonymous
10-29-2006, 02:14 PM
Attach your .fla.

Big_Rich1
10-30-2006, 04:56 PM
Got it guys. Thanks.