basically i want to make a movie clip that will scroll up when u roll over one button and scroll down when you roll over another. Here is my code (i have kept the comments to show what else i tried)
[COLOR=Blue]onClipEvent[/COLOR] ([COLOR=Blue]enterFrame[/COLOR]) {
[COLOR=Blue]_root[/COLOR].uparrow.[COLOR=Blue]onRollOver[/COLOR] = [COLOR=Blue]function/COLOR {
[COLOR=Gray]//if (this._y>100) {
//_root.texty._y -= 1;[/COLOR]
[COLOR=Blue]while[/COLOR] ([COLOR=Blue]_root[/COLOR].texty.[COLOR=Blue]_y[/COLOR]>100) {
[COLOR=Blue] _root[/COLOR].texty.[COLOR=Blue]_y[/COLOR] -= 2;
}
};
}
texty is the movie clip. The problem i have with this code is that even with 1fps the movie clip jumps straight to _y = 100 the second i roll over. i want it to slowly move up. any ideas? (sorry if i dont explain it well)