luster
1
Hi,
I tried the tutorial on hitTest, and I tried to make something using that. Now, I have a problem, and I really dont see what’s wrong
I used this:
onClipEvent (enterFrame) {
if (_root.Projectiel, hitTest(_root.Boot)) {
gotoAndPlay( frame2 );
}
}
It has to go to frame 2 when “Projectiel” hits “Boot”
But it doesnt do a thing. You guys know my fault?
system
2
[AS]onClipEvent (enterFrame) {
if (_root.Projectiel.hitTest(_root.Boot)) {
gotoAndPlay(2);
}
}
[/AS]
BTW, do you speak dutch ? I was the word Projectiel in it en da gelijkt tamelijk wa op’t nederlands/vlaams :beam:
system
3
Either that or
onClipEvent (enterFrame) {
if (_root.Projectiel.hitTest(_root.Boot)) {
gotoAndPlay("frame2");
}
}
If you want it to go to a frame that has the label “frame2” (no quotations)…
-M
Sorry, but that doesn’t semm to work. I’ll post my .fla , maybe you’ll find it.
PS= Ja, ik spreek Nederlands (Vlaams in mijn geval)
onClipEvent (enterFrame) {
if (this.hitTest(_parent.boot)) {
_parent.gotoAndPlay(2);
}
}
Aah, it was in an external SWF ?
:stunned:
nope… what makes you think that!?
The _parent code. ( Hey I’m here to learn
)
system
10
oh!! 
sorry… :-
i never use _root. that way, if i ever want to load the swf dynamically, i don’t need to change a thing in the movie.