tendria qe ser algo asi...
Primero en tu MovieClip a mover, osea _root.mcmapa coloca esto en su evento EnterFrame:
onClipEvent(enterFrame){
if(_root.pusheado==true){
_y-=1;
}
}
y despues en el boton qe controlara su movimiento coloca este codigo, asi tal y como esta los dos eventos, el press y el release:
on(press){
_root.pusheado=true;
}
on(release){
_root.pusheado=false;
}
__________________ ...everything under the sun is in tune
But the sun is eclipsed by the moon. |