flash Q
- Started
- Last post
- 3 Responses
- ********
i have been looking around for the last hour or so for a tutourial or movie clip that gives a button a feat. so it shows when you have clicked it, like changing color, shape or whatever, just like a link regular html link.
been thru all the flashsites already
without any luck! anybody out there who knows about that..thanks..
- unfittoprint0
for a 'button' MC you should create 4 states/labels: "off", "on", "over" and "visited".
//put a stop() in the first label "off"
myMC.onPress=function(){
this.gotoAndStop("on");
this.visited = true;
dofunction();
}myMC.onRollOver=function(){
this.gotoAndStop("over");
}myMC.onRollOut = function(){
if(this.visited){
this.gotoAndStop("visited");
} else {
this.gotoAndStop("off");
}
}
- imakedesign0
after your button code, just tell the button timeline to go to next frame, where u change the shape colur etc.
- ********0
thank you very much!!!