PDA

View Full Version : Buttons for .swfs onto and off of the stage!


jntspecialty
07-23-2008, 02:32 AM
I have three buttons (instance names are: red_btn, yellow_btn, and blue_btn) and three extra .swf files (.swf file names are: redmovie.swf, yellowmovie.swf, and bluemovie.swf).

How do I code the AS3 to get the buttons to play each .swf file for the corresponding color at X:265 and Y:108?
Do I need a holder movie clip (empty movie clip), or not?

Basically, I want the buttons to play the .swf files (which are just squares) on demand, and then make them disappear/unload and show the next .swf at the same X and Y positions (X:265 and Y:108) accordingly.

If someone could paste the proper code and help me out, it would greatly appreciated. And, I would be able to get on with the rest of my hard life.