PDA

View Full Version : Loading Movie Clips


Jiggy
05-18-2002, 09:57 PM
Quick question, I want to load a Movie clip from the library to my main movie with certain x, y coordinates
Then I want to have a check so that when another movie loads up ... the first movie unloads... how do i go about doing this?
Hehe, I could probably find the answer somewhere but I'm so new to all this coding that I don't want to get myself confused with something I think would work...

Thanks in advance
:)

farafiro
05-19-2002, 08:01 AM
u can do that with attachMovie :
//make a movie clip that will act like a holder for the attached clips
// linkage your movies that will b attached from the library and give them
// a different names for exportation
//make buttons as much as the number of the movies u want to be loaded into the holder mc
//let's go, on each button attach that code
on (release) {
_root.holder.attachMovie("mc1", mc1 , 1);
}
//just if u want the first movie unloads when loading the second,
//use the same depth

Jiggy
05-19-2002, 08:17 AM
Hmm.. yeah your previous post answered my previous question.. but I'm not to clear on what your sayin in the ^ post..
let me elaborate on my question

I have a button that does this:
on (press){attachMovie("movie","movie", 1);}
but my only problem is that when I hit it again.. it'll load up this movie again...
well I have an attribute on the movies when they load that they alpha in, instead of just coming right up
so everytime a movie loads up, it takes up a bit of cpu processing
so instead of the moving loading up there must be an If statement that will check if the movie is already loaded or not

saying something maybe like

on (press) {if (movieloaded is false){load movie}

but since I'm kinda new I don't know the commands or what my statement that would have to be true would look like...?

farafiro
05-19-2002, 08:29 AM
well, first that should work correctly. If not post your fla here

Also if u r using attachMovie method, u can't use the ifFramesLoaded