PDA

View Full Version : hittest help



travis
May 10th, 2006, 04:02 PM
How do you do a hittest that takes you to another frame in flash?

optixburn
May 10th, 2006, 05:54 PM
How do you do a hittest that takes you to another frame in flash?


if(my_hitTest_MovieClip.hitTest(_xmouse,_ymouse,tr ue)){
_my_movieClip_timeLine.gotoAndPlay(frame_i_want_to _go_to);
}

travis
May 10th, 2006, 07:48 PM
thanks

travis
May 14th, 2006, 12:01 AM
grr, I applyed this code;
onClipEvent(enterFrame) {
if(_root.guy_mc.hitTest(this)){
_root.guy_mc.gotoAndPlay(2);
}
}
and it still is not working, guy_mc just goes under the object... what am I doing wrong?

Joppe
May 14th, 2006, 05:20 AM
try


if(this.hitTest(_root.guy)){
//etc
}

nathan99
May 14th, 2006, 08:51 AM
Trav, your code is correct, check your instance names, or your other code.