Perfecto, perfecto, perfecto :D jeje el truco esta en el
Objet.registerClass() :-) Muchas gracias chicos :-D Ati en especial Xavi :-D
a ver si me sale ahora otra cosita :P
----- Original Message -----
From: "Ivan Rodriguez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2003 8:37 AM
Subject: Re: [ASNativos] no mueve ningun MC :-(


> Una preguntilla ......
>
> Puedo hacer diferentes MC y vincularlos como item_mc?� esque me dice que
> solo puede haber un identificador unico ... entonces como haria para que
los
> demas MC heredesaen el onRelease ... haciendolos todos a mano?�
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 03, 2003 5:24 PM
> Subject: Re: [ASNativos] no mueve ningun MC :-(
>
>
> > Hola Ivan,
> > ahora mismo voy un poquito justo de tiempo, pero en cuanto tenga un
> > momento te explico detalladamente lo que no entiendas del c�digo que te
> > pas�.
> >
> > La verdad que sin ver exactamente el archivo me resulta dif�cil decirte
> > donde puede fallar, pero se me ocurren varias cosas:
> >
> >   1.) Tienes que darle nombre de vinculaci�n al mc que te represente al
> > localizador. En la libreria, boton derecho y vinculaci�n. Tienes que
> > ponerle como nombre 'Localizador'
> >
> >   2.) Para lo que son los items idem pero con nombre de vinculaci�n
> 'item'.
> >
> > Esto corresponde con el primer par�metro del object.registerClass.
> >
> > A priori no veo nada m�s...
> >
> > > 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
> > > -------------------------------->
> > >
> >
> > <!-------------------------------
> > Lista ASNativos:
> > subscripciones/desubscripciones
> > http://www.sidedev.net/asnativos
> > -------------------------------->
> >
>
> <!-------------------------------
> Lista ASNativos:
> subscripciones/desubscripciones
> http://www.sidedev.net/asnativos
> -------------------------------->
>

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

Responder a