Monday, November 10, 2008

Video: Custom Flash Graphics

Adobe TV has posted my final Flex in a Week video. This one is on the use of Flash graphics objects in Flex applications, covering both drawing directly into the Graphics object for custom rendering in your updateDisplayList() method as well as creating and adding Flash shapes to your components. (Note that you have to have a completely cusom component, subclassing UIComponent, in order to add non-component children such as DisplayObjects or Sprites to the child list of your component; other Flex components only understand Flex component children).

It's not terribly advanced, but is meant more as an introduction to some of the graphics basics, including Flash's use of retained mode rendering and why you always need to clear() the graphics display list.

The source code for both examples is available here.

4 comments:

Mohamed Mansour said...

Nice video, keep them coming :)

wizard said...

Awesome thanks....

flash2nd said...

excellent video, I like this one

Keith said...

Very useful information. I haven't paid much attention to Flash's rendering that much. I'm now looking into its details for differences and limitations on its rendering to see where I can make my scripts more efficient when scripting graphics.

Also here's a video I looked at on immediate mode as opposed to retained mode graphics.
http://mollyrocket.com/861