views:

18

answers:

1

I am trying to create animation which is based on user input on speed and distance... also it needs to work consistently on different screens and resolution

what functions do i use to get the pixel size of the container where the animation is playing- to make the calculations?

+1  A: 

listen for keyboard events, like here http://blog.flexexamples.com/2008/08/04/closing-a-pop-up-window-using-the-keyboard-in-flex/

get any UIComponent width and height by using:

blah=yourComponent.width
Eugene
thanks... able to access these components properties in ActionScript w/o issues.
raghu
great, you are welcome, you may accept answer, if it was helpful
Eugene
just did... thanks again- learning the ropes of the forum.
raghu
great, you know where to ask your questions to get correct answers, u r welcome)
Eugene