Need help with ActionScript

Oct 13, 2006
64
0
0

IN A NUTSHELL---------------------------------
how can i write this line in Action Script?
while(mouse is not released) {
}
--------------------------------------------------



I want; to add a script to a button , btw i was using Flash CS3 proffesional and didn;t know you can't add a script to an object using as 3.0 so i was forcd to use actionscript 2.0.

I want to add a script to a button instance name "R" that will move the object instance name "timeline" to the left as long as you hold the mouse down. so i have this so far but it will only move the timeline with a single click.... see If i only knew how to write the while condition...

//on(press){
// while(cord == true){
// _root.timeline._x = _root.timeline._x - 10;
// }
//}

Thank you....