This content has been marked as final. Show 3 replies
did I posted in the correct forum?
the problem is that I want to rotate mx:Rotate 1 angle at time while moving mx:Move the object by 1 at a time. How can I do this if its possible to be done?
You won't be able to see anything if you have a loop changing the angle - you aren't giving the Flash Player time to make the visual change. All your ActionScript code does is set up the display list for the Flash Player. Once your function exists, the Flash Player then acts on the display list instructions.
To show this rotation you have to just increment the angle, then exit the function. To go back to the function and increment again, set an effectEnd event handler on the effect. The handler will get called once the rotation completes and you can increment the angle and do it again.
It takes a little getting used to, but the Flash Player is event-driven. You'll find that you'll be using this technique throughout your programming.
thanks very much it worked,
It never came to my mind to do something like this. I'm just too new to the flex and the flash player thing.
Thanks again really appreciate!