Estoy aun con las cosas de antes por que no me sale :-(

Tengo el siguiente codigo:

function Localizador() {
 this.addProperty("actualItem", this.getActualItem, setActualItem); 
 this.__actualItem__ = null;
 this.init.call(this);
}

Localizador.prototype = new MovieClip();

Localizador.prototype.init = function() {
 var i = int(this.provincias.length) ;
 while(i--) {
  trace(eval(this.provincias[i]).Localizador = this); 
 }
}

Localizador.prototype.setActualItem = function(item) {
 this.__actualItem__.volver.call(this.__actualItem__);
 this.__actualItem__ = item;
 this.__actualItem__.mostrar.call(this.__actualItem__);
}

Localizador.prototype.getActualItem = function() {
 return this.__actualItem__;
}

function item() {
 this.initX = this._x;
 this.initY = this._y;
}

item.prototype = new MovieClip();

item.prototype.mostrar = function() {
 delete this.onEnterFrame;
 this.endX = int(this.Localizador._x);
 this.endY = int(this.Lozalizador._y);
 this.dy = -(this._y - this.endY);
 this.dx = -(this._x - this.endX);
 this.y = this._y;
 this.x = this._x;
 this.reposition();
}

item.prototype.volver = function() {
 delete this.onEnterFrame;

 this.dy = -(this._y - this.initY);
 this.dx = -(this._x - this.initX);
 
 this.y = this._y;
 this.x = this._x;
 this.reposition();
}

item.prototype.onRelease = function() {
 this.Localizador.setActualItem(this); 
}

item.prototype.reposition = function() {
 this.onEnterFrame = function() {
  this._x += (this.x - this._x)/4;
  this._y += (this.x - this._y)/4;
 }
}

Object.registerClass("localizador", Localizador);
Object.registerClass("item", item);

Nose muy bien lo que hace, elcaso es que tengo dos frames, en el primero tengo ese 
codigo, en el segundo e creado un componente llamado provincias el cual es un array 
que contiene los nombres de los moviclips, y tengo un movieclip creado, el caso es que 
no hace absolutamente nada :-( y no tengo ni la menor idea de por que :-( si alguien 
pudiera explicarme como hacer que funcione. .... esque me es bastante urgente :-(

Muchas gracias


Iv�n Rodriguez Espada
_________________________
ALAPLAYA.COM
http://www.alaplaya.com
[EMAIL PROTECTED]
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->

Responder a