Vuevo a tener problemas con el valor de las variables, pues quiero que se sustituyan al invocar al metodo; o sea que la variable nuevo_clip se sustituya por su valor (clip1-clip2-clip3...), en el momento de invocar a los eventos; ahi va el codigo, para que me ayudes asolucionarlo
INSERTADOR_CLIP = new Object();
INSERTADOR_CLIP.change = function(INSERTADOR) {
var clip = INSERTADOR.target.selectedItem.icono;
cuenta_clips = i++;
nuevo_clip = "clip"+cuenta_clips;
mc = _root.attachMovie(clip, nuevo_clip, cuenta_clips);
mc._x = 250;
mc._y = 300;
//trace(nuevo_clip);
nuevo_clip.onPress = function() {
startDrag(this);
};
nuevo_clip.onRelease = function() {
stopDrag();
};
nuevo_clip.onEnterFrame = function() {
if (Key.isDown(key.LEFT)) {
this._rotation -= Math.floor((Math.random()*3)-5);
}
if (Key.isDown(key.RIGHT)) {
this._rotation += Math.floor((Math.random()*3)-5);
}
if (Key.isDown(key.DOWN)) {
this._width += Math.floor((Math.random()*3)-5);
this._height += Math.floor((Math.random()*3)-5);
}
if (Key.isDown(key.UP)) {
this._width += Math.floor((Math.random()*3)+5);
this._height += Math.floor((Math.random()*3)+5);
}
};
};
LISTA.addEventListener("change", INSERTADOR_CLIP);
Perdona por ser tan pesado.
un saludo