Last year I posted a FlipCard component for Flex that allows you to place UI Controls on the front and back of a 3D “card” that can be flipped by the user.  It gives the user the visual effect that there are settings or options on the backside of the page, form, etc.

FlipCard ScreenShot

FlipCard 2 has been rewritten from scratch to include various suggested features:

Download FlipCard from the FlipCard Project Page at Google Code.

The full source code was not included in the initial release due to the fact that it was mixed in with code from another application.  I finally set aside some time to re-factor and package it up into it’s own project.  I’m releasing the code in hopes that others might contribute and improve the component, so please feel free to submit code patches, documentation, skins, etc.

FlipCard v1 was written in MXML and used various tricks to allow child components to be added.  Unfortunately this made it impossible to view the front and back side contents in Design view.  The component is rewritten in 100% ActionScript and works in Design view, including the ability to edit the inner contents as well.  FlipCard inherits from ViewStack and behaves as such in Design view, allowing you to change the selectedIndex and view the back side.  Design view currently has some issues in that you can “flip” the card too many times and the child items go out of view, however toggling out and back in to Design view is a simple workaround.

The control is now much easier to customize and the flip button is no longer hard-coded into the FlipCard.  A FlipCardContainer class is include that will automatically generate a button, or you can create your own buttons to toggle the flip card via ActionScript.

The initial version also used code that had some memory leak issues and those have been fixed as well.

Please feel free to comment below, however if you have bug reports or feature requests, I ask that you post them on the google project page and not this blog post.