luster
1
Hi , I’m making a movie but I have a problem. In an MC named “balle”, I put this code:
onClipEvent (enterFrame) {
this._x = this._x+_root.posh;
this._y = this._y+_root.posv;
}
onClipEvent (load) {
gotoAndPlay (1);
}
onClipEvent (load) {
if this._x <= 0;
gotoAndPlay(“frame2”);
}
_root.posh is 4
_root.posv is 4
Please help!
system
2
well you odn’t need that many onclipevent (load)'s… THey can all be put into 1…
and it should be
[AS]
onClipEvent (load) {
if (this._x<=0) {
gotoAndPlay (“frame2”)
}
}
[/AS]
i assume “frame2” is the frame label, if its not, just put a ‘2’ without the brackets.
oh yea and u dotn’ need gotoAndPlay (1), it should do that itself.
That should be it i think…