PDA

View Full Version : help with a script ASAP


daveclark5
04-20-2002, 12:00 AM
I have two buttons that I want to control the y movement of a MC (one up and one down). I have assigned the following:
on (press) {

setProperty ("_root.text_move", _y, _root.text_move._y-5);
}
That's for the up button, and I have the vice-versa for the down. The problem is that when I test this, the MC moves only on the first click, but I want it to move in increments of five for EACH mouse press. How should I restructure the statements? I need to fix this verry soon, so your help and swift response would be greatly appreciated.

Drewmutt
04-20-2002, 01:54 AM
There's an easier solution.

on(release) // or press
{
_root.text_move._y-=5;
}