This content has been marked as final.
Show 3 replies
-
1. Re: Calling a MC from the library with a button
kglad Dec 17, 2008 11:29 PM (in response to nogreydes)you need to assign a linkage id to your movieclip and use the movieclip method attachMovie() to instantiate your library movieclip.
in the help files under the movieclip class, check attachMovie(). -
2. Re: Calling a MC from the library with a button
nogreydes Dec 18, 2008 8:25 PM (in response to kglad)ok kglad I have looked that up.
I have now attached this code to my button
on(press){
attachMovie("life_mcMc");
}
on(release){
play._life_mcMc
}
I know it is wrong!
I now understand how to attach the movie clip now how do i get it to show up and play on screen/stage?
I then want to be able to close/unload movie clip via a button within the movie which I assume i would then code to be something like
on (release) {
_root.gotoAndPlay("brochures");
}
but will that then unload/remove the movie clip from the screen/stage?
(the movie clip I am playing is basically a simulation of a pop up screen transparent over the rest of my site)
thanks for your help -
3. Re: Calling a MC from the library with a button
kglad Dec 18, 2008 9:59 PM (in response to nogreydes)that's not correct syntax for attachMovie(). at least 3 parameters are required:
parentMC.attachMovie(linkageID,mcName,depth);


