onClipEvent(load){
//is the cursor over the movie clip
previouslyOver=false;
}
onClipEvent(enterFrame){
currentlyOver=this.hitTest(_root._xmouse,_root._ymouse,true);
//if there is a change, go to another frame
if(!previouslyOver and currentlyOver){
previouslyOver=true;
this.gotoAndPlay("on");
} else if (previouslyOver and !currentlyOver){
previouslyOver=false;
this.gotoAndPlay("off");
}
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
firstly i wouldn't use onEnterFrame,
then i'd take the code off the movieclips and put in on the timeline
and i'd give my buttons instance names as per the array.
test it tell me how it goes.
also I'm guessing when they press it it must stay underlined.
blu
Open in new window