Tema: Trace raro
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/12/2006, 08:58
oxk4r
 
Fecha de Ingreso: septiembre-2006
Mensajes: 9
Antigüedad: 17 años, 7 meses
Puntos: 0
Trace raro

Código:
// COMO ES POSIBLE QUE EL EL TRACE DEVUELVA 2
function colocar():Void {
	for (i = 0; i <= 1; i++) {
		this["mcBola" + i].onPress = arrastrar;
		this["mcBola" + i].onRelease = soltar;
	}
}
function arrastrar():Void {
	this.startDrag();
}
function soltar():Void {
	this.stopDrag();
	trace(i);
	//2
}
colocar();