This content has been marked as final. Show 2 replies
The hit feature of a button defines the area that you can click to make a button work beyond what lives in the other 3 frames. For instance, say you have a small round graphic that you want to use as a button, and that's all you want to show, but it's really too small to easily target with a mouse. You can draw a larger circle in the hit frame so that this small looking button isn't as small as it looks.
Buttons cannot hold a state though. For what you want to do, you would need to use a movieclip and treat it like a button, so that when you click on it, it moves to a particular frame and stays there.
The best way you can do it, is firs, to prepare several colors of the same bike : you achieve this changing the Hue/Saturation properties in photoshop, so you are going to create, as an example, 7 different colors (the main colors) you have in stock.
Then you create independent Movieclips for each one, this won't load too much your memory since you can make independent SWF's which are going to be called on pressing the "color button" using the "LoadMovie" actionscript property. Remember, when you create the button, you just create small squares orange, blue, red, yellow, green, etc etc.. so when you click on them, the color they show is the color that will call the bike.
You have a good example here on using LoadMovie, there are even more googling around :
P.D.: There is another way, to try to apply colors with Actionscript, but forget about it, because since the bike pictures have shadows and shiny parts, this "filling color" way is not going to fit well. I justed wanted to mention this, I wouldn't try this way...