Seems like you're trying to do too much with triggers. Why not just handle 
whatever arbitrary event you're after (like clicking on the next/prev buttons) 
and then manually launch your custom effect with the appropriate target(s)? If 
necessary, the even handler could set up information on the effect (like the 
x/y positions for a move or whatever) prior to launching.

Chet.


From: [email protected] [mailto:[email protected]] On Behalf 
Of dorkie dork from dorktown
Sent: Wednesday, February 11, 2009 6:58 PM
To: [email protected]
Subject: [flexcoders]Architect an image gallery transition effect - design 
suggestions


I'm trying to create an image gallery component and I need some help. I have an 
Image component working. It has next and previous buttons that change the 
source of the Image component when they are clicked. This works fine so far. 
The problem is it looks like crap when it changes. How would you architect a 
source change effect so there would be a nice transition between the current 
image and the next or previous image?

For example, I want it to handle a crossfade where one image fades out and the 
next fades in or a move in effect where one image moves off the screen (and 
fades out) and another image fades in and moves in to the current image 
location. I know there is a showEffect and hideEffect but I need something like 
a sourceChangeNextEffect and a sourceChangePreviousEffect.

Reply via email to