Ok, I know I posted something like this the other day, but I figured out the solution. Now I have a question that experienced scripters might be able to answer for me.
When the mouse rolls onto the clip, the animation plays. When it rolls off, it plays. However, if the user moves off before either animation is finished, the results are less than desireable. I’m thinking I need some sort of test or anything like that. I’ve thrown up the .fla and if anyone can help me out, many thanks to you
//handle the turn Function
box.onEnterFrame = function(){
if(turn){
this.nextFrame();
}else{
this.prevFrame();
}
};[/AS]
This is an If/Else statement that tells the movie clip box to advance to the next frame of the movie as long as the user’s cursor is on the box, then play in reverse as soon as the cursor is off of the box.
liam: hitTest is more accurate than rollOver and rollOut, so TECHNICALLY the hitTest method is better, but it depends on the situation. It is good to know both methods.
nice, thanks EG. that’s exactly what I was looking for. hehe, when i was looking for a solution, i found a post you put up for someone else with similar coding and i modified it a bit. i got it working like 10 mins before i came back here. thanks everyone