PDA

View Full Version : LoadMovie and AttachMovie


esnap
07-30-2003, 11:26 AM
Can anyone explain the difference for me between LoadMovie and AttachMovie. I need to make use of one of them and don't know which.
My problem is that I want to have a webpage that will load in a fast time without having to load any of the movie clips I have contained in it unless the user clicks on a button for each one, so the idea is the user waits for the part to load only when they decide they want to watch it, rather than everything being loaded on the initial frame. The only solution I have at the moment other than using one of the attach methods is putting separate movies on different html pages, but I don't want to resort to that! If there is any sample fla file that fixes this plight, i'd appreciate it. Thanks :)

tg
07-30-2003, 11:36 AM
attachmovie is used to attach movieclips from your library using the linkage name of the library item.
loadmovie is used to load an external swf/jpeg into you current running swf.

black
07-31-2003, 12:30 AM
loadMovie:
load a SWF or JPEG file into the Flash Player while the original movie is playing. The loadMovie action lets you display several movies at once and switch between movies without loading another HTML document. Without the loadMovie action, the Flash Player displays a single movie (SWF file) and then closes.


MovieClip.attachMovie:
takes a symbol from the library and attaches it to the movie on the Stage specified by MovieClip. Use the removeMovieClip or unloadMovie action or method to remove a movie attached with attachMovie.