Wednesday, April 7, 2010

Video: Event Performance in Flex

Event Performance in Flex, the next episode in the gripping and suspenseful series CodeDependent, is now available from Adobe TV.

This episode covers the use of the updateAfterEvent() function to get better rendering performance for time-sensitve operations like mouse-interaction visuals and animations.

By default, changes to the graphics that the Flash player displays happen at the frame rate of the player (by default, 24 frames per second). This frame rate, which updates the screen every ~42 milliseconds, is fine for most visual changes on the screen. But when you need motion to be smoother, like in some animations, or need the visuals to respond quickly to user interactions, like changes in component state based on mouse movement or presses, then 24 fps may not cut it. In this case, you need to know about the updateAfterEvent() function found on some event objects.

Here's the video:

Here is the demo application:

And here is the source code.

Here's where you can find CodeDependent on iTunes.

And here's where you can find CodeDependent on YouTube.

Enjoy.

3 comments:

Luke said...
This comment has been removed by the author.
Luke said...

I have been reading through your blog with interest and would like to know whether you perceive HTML 5 a threat to Flash/Silverlight etc.

Do you think Flash will be obsolete in years to come when HTML 5 is fully supported?

Geek

yanli said...

How it 2011, luke, so what have you seen the change? You should have the answer, think from business point of view, not programmer point of view.

Most programmers have a narrow mindset and start to think threats or negatively, it really a wrong mindset. Just remember, one size doesn't fit all.