Te faltan los par�ntesis -> ():
botones.prototype.onRelease = function() {
this.ocultar(); // SIN problema aki
this.mostrar(); // SIN problema aki
}
-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] nombre de Ivan Rodriguez
Enviado el: martes, 04 de noviembre de 2003 12:41
Para: [EMAIL PROTECTED]
Asunto: [ASNativos] Problema que no encuentro en este code AS //llamar a
una funcion
<code>
function botones() {
_root.localizador._width = 0;
_root.localizador._height = 0;
_root.localizador._visible = 1;
}
botones.prototype = new MovieClip();
botones.prototype.mostrar = function() {
trace("Se esta haciendo uso de la funcio mostrar");
delete this.onEnterFrame;
this.x = 123;
this.y = 142;
this.reposition();
}
botones.prototype.ocultar = function() {
trace("Se esta haciendo uso de la funcio ocultar");
delete this.onEnterFrame;
this.x = 0;
this.y = 0;
this.reposition();
}
botones.prototype.reposition = function() {
this.onEnterFrame = efecto.showArea;
}
botones.prototype.onRelease = function() {
this.ocultar; //problema aki
this.mostrar; //problema aki
}
function efecto() {}
efecto.showArea = function() {
_root.localizador._width += (this.x - _root.localizador._width)/4;
_root.localizador._height += (this.y - _root.localizador._height)/4;
}
Object.registerClass("boton1", botones);
Object.registerClass("boton2", botones);
</code>
Donde pone problema aki es que no llama a la funcion y nose por que :-(
Iv�n Rodriguez Espada
_________________________
ALAPLAYA.COM
http://www.alaplaya.com
[EMAIL PROTECTED]
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->