Funciona perfectamente. Raro es que tambien habia utilizado esta opci�n
llam�ndole foto en vez de clip, pero bueno. Merci Xavi
----- Original Message -----
From: "xavier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 22, 2004 1:33 PM
Subject: Re: [ASNativos] problema con onEnterFrame



Creo que el problema es que nombras como this como la variable que almacena
la referencia al MC que creas. prueba con este c�digo a ver como te va:


_global.ampliar = function(imagen, alto, ancho) {
 clip=productos.foto.createEmptyMovieClip("img_"+prof, prof++);
 clip.loadMovie(imagen);
 clip.fadeIn(7);
};
MovieClip.prototype.fadeIn = function( step) {
 this.onEnterFrame = function() {
  trace("hola");
  this._alpha += step;
  if (this._alpha>=100) {
   delete this.onEnterFrame;
  }
 };
};


*********** SEPARADOR DE RESPUESTA  ***********

Recibido el 22/01/2004 a las 12:37

De: David Serrano



>Buenas, tengo un problemilla con onEnterFrame.
>Parece ser que no entra en el trace del prototype. He probado con this, y
>incluso con productos.foto["img"+i], pero no tira.
>
>_global.ampliar = function(imagen, alto, ancho) {
> productos.foto.createEmptyMovieClip("img_"+prof, prof++);
> this = productos.foto["img_"+prof];
> this.loadMovie(imagen);
> this.fadeIn(7);
>};
>MovieClip.prototype.fadeIn = function( step) {
> this.onEnterFrame = function() {
>  trace("hola");
>  this._alpha += step;
>  if (this._alpha>=100) {
>   delete this.onEnterFrame;
>  }
> };
>};
>
>La causa?
><!-------------------------------
>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