Estoy haciendo una pequeña aplicación en flash en la que hay varios mc (9 exactamente) y varias imágenes, estas imágenes se han de poder colocar en cualquiera de los 9 mc por medio de un drag, hasta aquí todo bien, puedo hacer que una imagen concreta se coloque en un mc concreto, pero se ha de poder poner en cualquiera de los nueve y ahi es donde viene el problema.
Este es el código que estoy usando:
Código :
var counter:Number = 0;
var woodSound:Sound = new Sound();
woodSound.attachSound("woodblock");
onEnterFrame = function ():Void {
if (counter == 4) {
}
};
marlboro.onPress = function():Void {
this.startDrag(true);
this.swapDepths(this.getNextHighestDepth());
xstart = this._x;
ystart = this._y;
};
marlboro.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == plA) {
this.enabled = false;
this._x = 129;
this._y = 133;
} else {
//reply_txt.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
};
marlboro.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == plB) {
this.enabled = false;
this._x = 164;
this._y = 133;
} else {
this._x = xstart;
this._y = ystart;
}
};
marlboro.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == plC) {
this.enabled = false;
this._x = 197;
this._y = 133;
} else {
this._x = xstart;
this._y = ystart;
}
};marlboro es la imagen
plA, plB, plC son los mc que han de contener a la imagen
AYUDA PLEASE
