Código ActionScript :
if (piezauno == 1){
_root.ipiezaunoclip.swapDepths(2);
_root.ipiezaunoclip.onPress = function () {
startDrag ("_root.ipiezaunoclip", true);
this.swapDepths(26);
}
_root.ipiezaunoclip.onReleaseOutside = function () {
stopDrag ();
if (_root.ipiezaunoclip.hitTest(_root.ipiezaunoclipfondo)) {
_root.ipiezaunoclip._x=_root.ipiezaunoclipfondo._x;
_root.ipiezaunoclip._y=_root.ipiezaunoclipfondo._y;
piezauno = 2;
_root.ipiezaunoclip.swapDepths(1);
}else {
_root.ipiezaunoclip.swapDepths(2);
}
}
}else {
_root.ipiezaunoclip.swapDepths(1);
}Espero que me podais ayudar porque le estoy dando vueltas y más vueltas pero no hay manera
Muchas gracias por todo
Saludos
