flash Q
flash Q
Out of context: Reply #1
- Started
- Last post
- 3 Responses
- 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");
}
}