Adobe Dreamweaver Forums



Last 10 THreads :         Table Borders MIssing in JavaHelp (Last Post : soxmann - Replies : 3 - Views : 8 )           »          Clock .getUTC not working (Last Post : bolszo - Replies : 2 - Views : 3 )           »          cfimage error (Last Post : masoud_amen - Replies : 2 - Views : 3 )           »          Dragging components (Last Post : hsfrey - Replies : 2 - Views : 4 )           »          Is file too large? (Last Post : tweaked_eye - Replies : 0 - Views : 1 )           »          Could not find the included template (Last Post : azuro28 - Replies : 2 - Views : 3 )           »          problems linking PDFs (Last Post : Mantzi - Replies : 0 - Views : 1 )           »          flash loader reappears after movie plays (Last Post : lyshamo - Replies : 3 - Views : 4 )           »          How to turn IMAGE into MOVIECLIP??? (Last Post : Snufferson - Replies : 7 - Views : 8 )           »          Embed files in a projector (Last Post : ytlevine - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 12-01-2008, 04:03 PM
Handycam
 
Posts: n/a
Diggs:
Default Cross-fading images?

My app has a viewStack, each Canvas inside the viewStack has an image.

I have set showEffect and hideEffect for each Canvas to fadeIn and fadeOut
(see code) and this works, but of course they fade in and out to the
background stage. How can I have the images dissolve into each other? If this
is not possible with a view stack (which would be ideal for many reasons in my
app), how would you recommend doing it?

<mx:Fade id="fadeIn" duration="500" alphaFrom="0" alphaTo="1"/>
<mx:Fade id="fadeOut" duration="500" alphaFrom="1" alphaTo="0"/>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2008, 05:24 PM
Karl_Sigiscar_1971
 
Posts: n/a
Diggs:
Default Re: Cross-fading images?

The sequence is as follows right now:
CANVAS1 fade, CANVAS1 invisible, CANVAS2 visible, CANVAS2 fade

You need to have both CANVASes visible and fading at the same time.

Let another CANVAS contain the other two CANVASes and control their fading by
script. Detect when the transitions end using the effectEnd event or the
<mx:Fade> tag. In the event handler, set the ViewStack selected index.

This should work.


Reply With Quote
  #3 (permalink)  
Old 12-01-2008, 06:13 PM
Handycam
 
Posts: n/a
Diggs:
Default Re: Cross-fading images?

Actually, I found an even easier way:

http://www.efflex.org/

Outstanding SWC library and simple-to-manage code. I love the internet.
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:42 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk