I have managed to create a button which works with simple rollover and rollout action. But if I would like this button to change a colour and remain that colour once pressed. Is this possible and if so any ideas?
there’s no need to use tell target. Just paste the following code into the object actions of the movie clip. This is for flash 5. I don’t know about mx. Change 336699 to the hexadecimal code of your colour. If you want to make the transition animated then use gotoAndPlay(“whatever”) instead of changing colour, i hope that worked because it’s working fine for me.
onClipEvent(load){
rolledover=false
}
onClipEvent(mouseMove){
if (hitTest(_root._xmouse, _root._ymouse, false) and(!rolledover)) {
colour = new Color(this);
colour.setRGB(0x336699);
My file works very differently to that. When mouse is over the box the corner of the page turns over. When removed it turns back.
But say if i wanted to make the corner stay turned up once pressed or the box change a totally different colour when pressed, how can i add to the .fla to make this work?