Hay otros m�todos que te dejar�an intacto en onPress, por ejemplo utilizando
__resolve, pero este es sencillito

MovieClip.prototype.onPress = function (){
    if ((getTimer() - this.$timer) <= this.lapsus && this.$timer
!=undefined){
         this.onDobleClick();
    } else {
        this.onSingleClick();
    }
 }

myClip.onSingleClick=function(){ // utiliza esta funcion en vez de onPress
    trace("ahora funciona")
}




----- Original Message ----- 
From: "Eva del Campo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 23, 2003 11:42 PM
Subject: Re: [ASNativos] Doble click


> Ese m�todo se parece al que estoy probando, pero no sirve, ya que deja de
> funcionar en cuanto asignas una funci�n de esta forma:
> <code>
> miClip.onPress = function(){
>     trace("no funciona");
> }
> </code>
>
> xxxx
>
> Eva
>
> > MovieClip.prototype.lapsus = 200;
> > MovieClip.prototype.onPress = function (){
> > if ((getTimer() - this.$timer) <= this.lapsus && this.$timer !=
> > undefined) this.onDobleClick();
> > }
> > MovieClip.prototype.onRelease = function () {
> > this.$timer = getTimer();
> > }
> >
> > MovieClip.prototype.onDobleClick = function() {
> > trace("doble click");
> > }
>
> <!-------------------------------
> Lista ASNativos:
> subscripciones/desubscripciones
> http://www.sidedev.net/asnativos
> -------------------------------->

<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->

Responder a