PDA

View Full Version : Need Help


asbiff
04-05-2006, 02:12 PM
How do I make the movie clip move with a button?

on (press) {
_root.pic.up = true;
}
on (release, releaseOutside) {
_root.pic.up = false;
}

Is this even close I can't get this to work.

Can anyone help?

indianleo
09-21-2006, 09:16 AM
HI
here is the script Hope it will help u


onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x += 5;
}
if(Key.isDown(Key.LEFT)){
this._x -= 5;
}
if(Key.isDown(Key.UP)){
this._y -= 15;
}
if(Key.isDown(Key.DOWN)){
this._y += 5;
}
}