Bueno, yo lo solucionaria como sigue, que es mas trasparente:
<code>
MovieClip.prototype.setOnPress = function(ref) {
this.$onPress = ref;
};
MovieClip.prototype.reDo = function(ref) {
this.onPress = this.$onPressMaster;
};
MovieClip.prototype.getOnPress = function() {
return this.onPress;
};
MovieClip.prototype.onEnterFrame = function() {
this.$lapsus = 500;
this.onEnterFrame = null;
};
MovieClip.prototype.onPress = function() {
if (this.$dobleClick == true)
{
this.$timer = new Date().getTime();
//this.$timer = this.timer.getTime();
if (Math.abs(this.$firstTime-this.$timer)<=this.$lapsus)
{
this.$onDobleClick();
}
else
{
this.$firstTime = this.$timer;
}
}
else
{
this.$onPress();
}
};
MovieClip.prototype.getOnDobleClick = function() {
return this.onDobleClick;
};
MovieClip.prototype.setOnDobleClick = function(ref) {
this.$onDobleClick = ref;
if (ref != null)
{
this.$dobleClick = true;
}
else
{
this.$dobleClick = false;
}
};
MovieClip.prototype.addProperty("onDobleClick", this.getOnDobleClick,
this.setOnDobleClick);
MovieClip.prototype.addProperty("onPress", this.getOnPress, this.setOnPress);
</code>
De esta manera cuando haces un miClip.onDobleClip = function (); se desvia a
ese evento y no responde al onPress que tengas ya suscrito al clip, cuando
haces miClip.onDobleClick = null; se devuelve el callback al onPress que hayas
definido previamente. De esta manera es trasparente completamente, y puedes
asignarle sin problemas los eventos y que reaccione.
Sixto
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->