Tambien igual pero
delete this.onEnterFrame
:)

----- Original Message ----- From: "Jassu" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 17, 2006 7:37 PM
Subject: RE: [ASNativos] eliminar un enterframe


function mover(targ, xfinal) {
targ.onEnterFrame = function() {
targ._x += Math.round(((xfinal-targ._x)/2));
if(targ._x == xfinal)
this.onEnterFrame = undefined;
};
}

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre
de Ignasi Rifé
Enviado el: Viernes, 17 de Marzo de 2006 03:11 p.m.
Para: [email protected]
Asunto: RE: [ASNativos] eliminar un enterframe

Hola a todos,
tengo una funcion que me sirve para mover clips en la escena, que
basicamente la formulo asi:

function mover(targ, xfinal) {
targ.onEnterFrame = function() {
targ._x += Math.round(((xfinal-targ._x)/2));
};
}

como coño puedo eliminar el enterFrame si uso la funcion para distintos
clips?
el caso es que el procesador me va loco y no encuentro la manera de "matar"
el enterFrame una vez el clip está en la posición final.

muchas gracias y buen fin de semana,

ignasi rifé
[EMAIL PROTECTED]

----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------

__________ Información de NOD32, revisión 1.1448 (20060317) __________

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.com


----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------


----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------

Responder a