PDA

View Full Version : gotoAndStop in hitTest



paopei
July 24th, 2002, 02:52 AM
:ninja: i have problem about hitTest method. i create a game and i wrote script as follow :

if(mymovieclip, hitTest(target)){
this.gotoAndStop(2);
//2 is frame that execute certain action or changing
}

but that script won't work. but in this code (action of certain button) :

on(release){
mymovieclip.gotoAndStop(2);
}

and that works! is there somebody who can explain those problems.
thanks=)

pom
July 24th, 2002, 10:03 AM
this.gotoAndPlay(2);Ask yourself: what does the this. refer to? And you'll find your answer. Free... your... mind.

morpheus :asian:

paopei
July 24th, 2002, 09:52 PM
Originally posted by ilyaslamasse

this.gotoAndPlay(2);Ask yourself: what does the this. refer to? And you'll find your answer. Free... your... mind.

morpheus :asian:

i refer this to mymovieclip because the script is attached to mymovieclip.:rambo: