si no te claras mejor asi XDXD
Código PHP:
on (press) {moverx_derecha();
}
on (release){
delete(this.onEnterFrame)
}
Código PHP:
function moverx_derecha() {
this.onEnterFrame=function(){
if (map._x>=derecha) {
map._x = map._x-20;
clau = map._x;
} else {
map._x = derecha-20;
}
}
}