« How to use ASDoc with external libraries
» Mask an Away3D scene in Flex

Actionscript 3, Adobe Flex 2, Away3D

Dynamic Flex CoverFlow Component with dataProvider

09.11.08 | 25 Comments

There’s a project page of this component now, check it here, it’s open source!

As you may have read in a few of my other posts I’ve hacked a CoverFlow component together, just to see if it could be done. I was glad to see a lot of people liked it, so I decided to turn it into a proper component instead of the “hacked together” version I’ve posted before.

SebCoverFlow component for Flex

A lot of things have changed under the hood, a lot of bugs are fixed and you have to use the component a bit different.

  • The previous version was built as a container, the new version is built more like a dataGrid, so it’s a component with a dataProvider. The component just renders the data in the dataProvider
  • It’s dynamic! It loads the images from the dataProvider. Changes on the dataProvider will be detected through binding
  • It’s now compatible with the Flex history manager, I’ve implemented the IHistoryManagerClient interface
  • It’s now compatible with the Flex focus manager, I’ve implemented the IFocusManagerComponent interface
  • I’ve added keyboard control, so the left and right arrow keys change the selected cover
  • It dispatches events, it lets everyone who’s listening know that the selectedIndex has changed, that it’s finished animating, etc
  • It’s now properly masked, the 3d scene doesn’t stretch to the full stage width and height anymore
  • And some more other small things

I’ve created a new sample project to demonstrate all of the features, see it in action here. You can see and download the source code of the sample project here.

The component free to download and free to use, download the swc here. I’m not publishing the source code of this one for now.

I’ve created documentation to help you put this component to good use, read it here.

Let me know what you think of it. I’d also like to see some end results. some projects in which you’ve used my component.

The next step? Hmm, a piclens component perhaps?

25 Comments


« How to use ASDoc with external libraries
» Mask an Away3D scene in Flex