[color=Sienna]onClipEvent (enterFrame) {
function rekka() {
_root.rekka_mc._x = 640+random(400);
_root.rekka_mc._y = random(400);
}
if (this.hitTest(_root.rekka_mc)) {
_root.rekka_mc._x+=13; //there to stop the rekka_mc from moving
var test;
test = setInterval(rekka, 100);
clearInterval(test);
}
}
[color=Black]I want the code to do the rekka function once! but it doesnt move that rekka_mc anywhere? If I dont use clearInterval it does the rekka funciton over and over again…
SO HOW DO I GET IT TO DO THE REKKA FUNCTION ONCE!
PLEASE HELP
[/color][/color]