Muovo un oggetto e vorrei
ke alla fine del movimento eliminare
OnEnterFrame.
è giusto così?
mc.onEnterFrame = function() {
if (mc._y>=10) {
finalY = 30;
currentY = getProperty("mc", _y);
diffY = (finalY+currentY)/5;
setProperty("mc", _y, (currentY-diffY));
} else if (mc._y<=30) {
delete mc.onEnterFrame;
}
};

Rispondi quotando
