I came across Trevor solution which is very smart and compact and decided to create a little wrapping class called SideDetector (renamed to avoid confusion :) ) which is dispatching an Event.FACE or Event.BACKFACE event when the DisplayObject viewable side has changed. This way, you can modify the DisplayObject state and map any texture you want. The cool thing is that this class also works with DisplayObject's created and animated through the IDE.
http://www.bytearray.org/?p=468 |