Código:
on (press) { startDrag(this); } on (release) { var clip:Array = new Array(); for (var j = 1; j<=9; j++) { clip.push("area"+j); } for (var i = 0; i<8; i++) { var toca = eval(this._droptarget)._name; if ((toca != undefined)) { if (toca == clip[i]) { stopDrag(); var d:Number = 0; d =eval(clip[i])._y; this._x = eval(clip[i])._x this._y = eval(clip[i])._y break; } } } }