Hi Brian, have you checked out the supplied SimpleFlipTransition.mxml? This example shows usuage of States and Transitions with the distortion effects. Generally, the idea is to first apply the effect and afterwards the state change of the view (i.e. via currentState, ViewStack, manually addChild/removeChild etc). Also of interest might be SimpleManualFlip.mxml. The effects should work in every environment. If you experience problems, let's fix them. Feel free to drop me an email offlist (with a reproducable example). Best, Alex
Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg,
South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951
[EMAIL PROTECTED]
http://weblogs.macromedia.com/auhlmann
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Dunphy
Sent: 14 December 2006 20:07
To: [email protected]
Subject: [flexcoders] Question regarding Alex Uhlmann's
DistortionEffects library
I've been looking in to Alex Uhlmann's DistortionEffects library
(
http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.
cfm
<http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor
.cfm> )
and I'm trying to figure out how to implement these effects in to an
existing application.
Essentially, here's my problem:
We have an existing application with a dashboard. Within that
dashboard are Widgets. Widgets are an extension of DragPanel
(extension of TitleWindows) that are the children of a Canvas. I chose
to implement my own drag/drop functionality with TitleWindows so that
I could restrict dragging to the Canvas area.
Each Widget has a front (main UI) and a back (configuration).
Currently I am using states and simple transitions to go back and
forth between the two views of a Widget. My end goal is to use a Flip
effect (available in the DistortionEffect library) to flip the widgets
over to configure them, just like an OS X dashboard widget.
All of the examples on Alex's site seem to make use of two or more
Panels within a ViewStack to accomplish the flipping effect. Can
anybody think of a way to implement the desired effect without
completely changing my Widget architecture?
My next step might be to try to make a draggable ViewStack container
if I can't figure out another option.
Any ideas would be appreciated!
Thanks,
Brian Dunphy
adobe_logo.gif
Description: adobe_logo.gif

