all groups > macromedia flash sitedesign > october 2004 >
You're in the

macromedia flash sitedesign

group:

Button problem


Button problem HeMightBeCreative
10/27/2004 9:34:04 PM
macromedia flash sitedesign:
Alright, I have a button. I click on it and it changes color but it changes right back. How do I get it to remain the changed color?

Re: Button problem mtx
10/27/2004 10:53:02 PM
I assume you are using the Button symbol? Another way to create a button is
to use the MovieClip symbol instead.

1. Create a new movie clip and create two key frames within it.

2. Add a new layer called 'actions' and in the first frame enter the
following actionscript
in the Actions panel:

stop();

This will prevent the movie from looping.

3. In the first key frame put the graphic you want to use as a button.

4. In the next key frame put the same graphic but change the colour to what
you want.

5. Get out of edit mode for that clip and then select it on the stage.

6. Open the actions panel and enter the following actionscript:

// This tells the clip to behave as a button
onClipEvent(load)
{
this.trackAsMenu = true;
}

// When the button is clicked the movie goes to the next frame
on (release)
{
nextFrame();
}

Hope this helps and is not too unclear!


[quoted text, click to view]


Re: Button problem Bionicegg
11/2/2004 1:43:41 AM
add a "on mouse over goto frame 2", and make frame 2 a different color


[quoted text, click to view]

AddThis Social Bookmark Button