Hi Venkat,

Thanks a lot , to share the information about frame.

Regards,
Kundan

On Mon, Dec 29, 2008 at 9:51 PM, Venkat Viswanathan
<helloven...@gmail.com>wrote:

> Hi Kundan,
>
> The Flash Player works more like a video. As in a video there are frames,
> similarly in Flash Player also there are frames. Its like a flip-book where
> you flip across pages very quickly and you will feel as if the drawing is
> getting animated. Similarly flash player also animates using frames.
>
> Typically a Flex application runs at a framerate of 24 frames per second.
> This means that in a second, the Flash player will show you 24 frames. So if
> you do an addEventListener on ENTER_FRAME, it will be executed as many times
> as the frame-rate of the application. By default, it will execute 24 times
> in a second.
>
> You will need it when want to do something very regularly without
> compromising on the performance. Suppose you are creating a game and you
> want that the character in the game should keep on moving till the user
> holds the down arrow key. In such a case, you can set a flag to true in the
> onKeyDown event and set it to false in the onKeyUp event. And in the
> ENTER_FRAME event, move the character whenever the flag is true.
>
> Regards,
> Venkat
> www.venkatv.com
>
>
>
> On Mon, Dec 29, 2008 at 4:44 PM, kundan singh 
> <kundansingh....@gmail.com>wrote:
>
>> Hi,
>>
>> can anybody make me understand , when to use ENTER_FRAME event .
>>
>> Regards
>> Kundan
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to