Hvordan stopper jeg denne Action
Jeg har nogle cirkler som "flyver" rundt i Scene 1.Mit problem er at når jeg vil gå videre til Scene 2, så bliver de ved med at svæve lystigt rundt"#¤#"!/&%
Er der een som ved hvordan jeg kan stoppe denne Action når jeg går til en ny scene?
stop();
posX = Stage.width / 2.1;
posY = Stage.height / 2;
_global.signal=true;
onEnterFrame = function() {
if (signal) {
mausPos += ((_root._xmouse - posX) / 260);
for (i = 1; i < 2; i++) {
vinkel = ((mausPos + (360 / 1 * i)) * Math.PI) / 180;
clip._x = posX + (Math.sin(vinkel) * 230);
//clip._y = posY + (Math.cos(vinkel) * 60);
clip._xscale = 70 + (Math.cos(vinkel) * 60)
clip._yscale = 70 + (Math.cos(vinkel) * 60);
clip.swapDepths(1000 + (Math.cos(vinkel) * 100));
clip2._x = posX + (Math.sin(vinkel+1) * 230);
//clip2._y = posY + (Math.cos(vinkel+10) * 50);
clip2._xscale = 70 + (Math.cos(vinkel+1) * 50)
clip2._yscale = 70 + (Math.cos(vinkel+1) * 50);
clip2.swapDepths(1000 + (Math.cos(vinkel+1) * 100));
clip3._x = posX + (Math.sin(vinkel+2) * 230);
//clip3._y = posY + (Math.cos(vinkel+2) * 50);
clip3._xscale = 70 + (Math.cos(vinkel+2) * 50)
clip3._yscale = 70 + (Math.cos(vinkel+2) * 50);
clip3.swapDepths(1000 + (Math.cos(vinkel+2) * 100));
clip4._x = posX + (Math.sin(vinkel+3) * 230);
//clip4._y = posY + (Math.cos(vinkel+3) * 50);
clip4._xscale = 70 + (Math.cos(vinkel+3) * 50)
clip4._yscale = 70 + (Math.cos(vinkel+3) * 50);
clip4.swapDepths(1000 + (Math.cos(vinkel+3) * 100));
clip5._x = posX + (Math.sin(vinkel+4) * 230);
//clip5._y = posY + (Math.cos(vinkel+4) * 50);
clip5._xscale = 70 + (Math.cos(vinkel+4) * 50)
clip5._yscale = 70 + (Math.cos(vinkel+4) * 50);
clip5.swapDepths(1000 + (Math.cos(vinkel+4) * 100));
clip6._x = posX + (Math.sin(vinkel+5) * 230);
//clip6._y = posY + (Math.cos(vinkel+5) * 50);
clip6._xscale = 70 + (Math.cos(vinkel+5) * 50)
clip6._yscale = 70 + (Math.cos(vinkel+5) * 50);
clip6.swapDepths(1000 + (Math.cos(vinkel+5) * 100));
clip7._x = posX + (Math.sin(vinkel+6) * 230);
//clip7._y = posY + (Math.cos(vinkel+10) * 50);
clip7._xscale = 70 + (Math.cos(vinkel+6) * 50)
clip7._yscale = 70 + (Math.cos(vinkel+6) * 50);
clip7.swapDepths(1000 + (Math.cos(vinkel+6) * 100));
clip8._x = posX + (Math.sin(vinkel+7) * 230);
//clip8._y = posY + (Math.cos(vinkel+10) * 50);
clip8._xscale = 70 + (Math.cos(vinkel+7) * 50)
clip8._yscale = 70 + (Math.cos(vinkel+7) * 50);
clip8.swapDepths(1000 + (Math.cos(vinkel+7) * 100));
clip.onRollOver = function() {
signal = false;
}
clip.onRollOut = function() {
signal = true;
}
clip2.onRollOver = function() {
signal = false;
}
clip2.onRollOut = function() {
signal = true;
}
clip3.onRollOver = function() {
signal = false;
}
clip3.onRollOut = function() {
signal = true;
}
clip4.onRollOver = function() {
signal = false;
}
clip4.onRollOut = function() {
signal = true;
}
clip5.onRollOver = function() {
signal = false;
}
clip5.onRollOut = function() {
signal = true;
}
clip6.onRollOver = function() {
signal = false;
}
clip6.onRollOut = function() {
signal = true;
}
clip7.onRollOver = function() {
signal = false;
}
clip7.onRollOut = function() {
signal = true;
}
clip8.onRollOver = function() {
signal = false;
}
clip8.onRollOut = function() {
signal = true;
}
}
}
};
HVLogo.swapDepths(999 + 1);
