Oh well another flash question.
I want to achieve this effect in Flash. I want the buttons to stay on their over stance when clicked.
http://www.grabugegraphique.org/circm/web/general
Here's the AS I've put on buttons
code:
on (rollOver) {
if (_root.Btn1 == 1) {
this.useHandCursor = false;
} else {
this.useHandCursor = true;
_root.education.gotoAndPlay("ouverture");
}
}
on (rollOut) {
if (_root.Btn1 == 1) {
null;
} else {
_root.education.gotoAndPlay("fermeture");
}
}
on (release) {
_root.Btn1 = 1;
_root.Btn0 = 0;
_root.Btn2 = 0;
_root.Btn3 = 0;
if (_root.active_id == 0) {
null;
} else {
_root[_root.active_id].gotoAndPlay("fermeture");
_root.active_id = 0;
}
}
The problem I have is that the buttons, when clicked, always stay on their over stance. They can't be unclicked?
The rollover effects works well but the clicking doesn't.
Can someone give me a hand on this one ?
Thanks
¨...the people who are crazy enough to think they can change the world, are the ones who do.¨