Hi there,
Image Gallery with overlaping Fade In and Fade Out effects
I'm trying to find an idea to go by or some code snippet for an Xml Img. gallery where I can use Images which are fading 'In and Out' before showing the next Img. overlaping, and which than again does the fade In and Out thing.
Thanks alot in advance. regards aktell2007
I did something like this last year for a project.
Just have two superimposed Image controls (same x,y or top left coordinates in an absolute layout).
Set showEffect and hideEffect for them to Fade.
Set their source and visibility alternatively: image1 visible while image 2 invisible and vice-versa.
<mx:Image id="image1"
top="10"
left="10"
showEffect="Fade"
hideEffect="Fade" />
<mx:Image id="image2"
top="10"
left="10"
showEffect="Fade"
hideEffect="Fade" />
aktell2007 wrote:
Hi again,
Still looking for an answer 'Grizzzzzzzzzz'! regards aktell
to make a gallery like that, you'll need to store all the image locations in an array,
start off by loading the first item of the array into an Image component's source (All images will need to be the same size for the best results, else things will look abit scabby)
on the next button click, simply load the next array item into the image source, and the opposite for the back button. Make use of the inbuilt flex "fade" transition and volia! You're pretty much done.
have a go yourself from what i've said, i've pretty much covered it all. If you're still having problems pop back and i'll fix you up with a basic example to get you started ![]()
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).