Simple backgroung rectangle swap

im working on flash project thats a mock of an early apple computer (system 1 - 3) and in it i want to create a backgroun chooser. what i have done is created a movie clip to use as my background, and in the movie clip i want to have the options for my background. so, essentially, i have 5 rectangles with tiled backgrounds, and on pressing certain buttons i want one rectangle to appear, and the one that was previously viewable, to disapear. im sure the scripting to get this to happen is relatively easy, im just not sure the best way to do it (do i put each background on a different layer and tell actionscript to make certain layers visible, etc…)

any help would be greatly appreciated.

thanks, ben.

Probably the easiest way to go about this would be to put each background in a seperate frame, with a stop(); at each frame. Label each frame with it’s color. For example frame 1 is red, so label it “red”.

Then on each color change button put a gotoAndStop(“color”);

Follow me?

how do i get a button on the main stage to move to a frame on a different scene (movie clip). in my movie clip called background, i have three frames called bg_01 bg_02 and bg_03, so how do i get it to gotoAndStop(" frame called bg_02 in movie clip bckgrnd ");

thanks. for your help

It would be background.gotoAndStop(“bg_02”);

Change the name of the frame for each button to go with what you want it to go to.

Keep in mind this is a quick thrown together example.

I hope it works for you, I didn’t notice this was the MX 2004 forum. I did this in regular old MX.