View Full Version : Loading internal movieclips

02-23-2007, 02:49 PM
Does anyone know if it's possible to dynamically load/unload movie clips from the library?
I'm trying to make a game that looks like Family Feud. I'm presuming I would have a layout screen with X number of answers. I was thinking I would cover the answers with some MC's, and then have them disappear on a keypress. The answers would probably be out of order (non-linear).. so I could load a movie clip to reveal an answer based on keyboard input,... 1, 2, 3, 4, etc...
When '1' is pressed, load the MC the reveals the answer. But how can I dynamically load these movies?

Should I be creating dummy MC's like in: http://www.dynamicdrive.com/forums/showthread.php?t=16714 ?


02-23-2007, 05:15 PM
If you are using Flash 7 or 8 you can use loadMovieClip(); and unloadMovieClip();

remove() attach() are other options.

You can even do this all dynamically and based on time not even a keypress :)

How crazy do you want to get? (And more importantly, which version of Flash are you using?)