PDA

View Full Version : when they hit, go to next frame...



SetroGamer
September 22nd, 2003, 10:50 PM
this is what I have for that:

onClipEvent (enterFrame) {
if (this, hitTest(_root.ball)) {
nextFrame();
}
}

and it doesn't work. Can someone please help me out here?

claudio
September 22nd, 2003, 11:22 PM
my_mc.onEnterFrame = function(){
if (this.hitTest(_root.ball)) {
this.nextFrame();//tell my_mc to go to next frame
}
}

SetroGamer
September 22nd, 2003, 11:28 PM
It still doesn't work :'(

claudio
September 22nd, 2003, 11:30 PM
what do you want to go to next frame? the mc?

SetroGamer
September 23rd, 2003, 12:01 AM
I just want it to go to the next frame of that scene..

claudio
September 23rd, 2003, 12:09 AM
my_mc.onEnterFrame = function() {
if (this.hitTest(_root.ball)) {
this._parent.nextFrame();
}
};

SetroGamer
September 23rd, 2003, 08:45 AM
It still doesn't work...