'Hit' State on a Movie Clip

“delete this.onEnterFrame” will simply stop the onEnterFrame, that is, it will stop doing the stuff in the enterFrame event handler.

Did you check out this thread? Then you don’t need the tween/animation at all . . .

http://www.kirupaforum.com/forums/showthread.php?threadid=37455

Much simpler and cleaner.

Dude!

Kay check this out…

Original code for the MC:

on (rollOver) {
gotoAndPlay (“2”);
}
on (rollOut) {
gotoAndPlay (“9”);
}

Revised Code for the MC:

on (rollOver) {
this.gotoAndPlay (“2”);
}
on (rollOut) {
this.gotoAndPlay (“9”);
}

Final Outcome… IT WORKS!!! Do you know why?

LOL! Yeah, it works because you applied the action to an object, instead of just having the action floating in space. It’s like saying “go over there” instead of saying “Hey you! Yeah you! YOU go over there”.

Does that make sense? that’s the whole basis of flash really:

object.action = result!

Good job! :slight_smile:

Hahaha! Good answer! But NO!!!

I had it the actionscript applied to the MC the whole time,… The only thing I added was the ‘This’. I didn’t think it would make a difference putting ‘This’ since the script was already applied to the MC! :ub:

Haha but Good Answer! :wink: