I have written this very simple code that should work, but it won’t! Here is the deal. I have 2 boxes. 1 red and one blue. They are both MC. Now when you roll over the red box, the blue box should begin to start to follow your mouse. When you roll out of the red box, the blue box will stop following you. Everything works, but the box still follow even after rollOut. Please help. Here is what I did…
on the red box…
on (rollOver){
_root.follow = 1;
}
on (rollOut){
_root.follow = 0;
}
on the blue box....
onClipEvent(enterFrame){
if (_root.follow == 1){
startDrag(_root.dragger, true, 200, 200, 600, 200);
}
if (_root.follow == 0){
stopDrag();
}
}
you’re right about the code though. It certainly looks like it should work… and you say it does, but doesn’t stop working. which is more glitchy than signs of incorrect programming.
just for ****s and giggles, check out your whole movie to make sure that you do not have two movie clips with the same instance name. I often encounter problems like that when I double up on names.
OMG you did it beta. I have been working on this for like a week and a half, but noooo! And you guys come along and get it worked out in one day. This really pisses me off, but ironically makes me happy at the same time. Thanks a bunch fellas.