Adobe Dreamweaver Forums



Last 10 THreads :         Why is this not working!!! (Last Post : mickknight - Replies : 2 - Views : 3 )           »          Get the letter beneath the mouse cursor (Last Post : Raymond Basque - Replies : 2 - Views : 3 )           »          Interesting date query I need some help with (Last Post : -==cfSearching==- - Replies : 2 - Views : 3 )           »          Splash Screen is not been recorded... (Last Post : vratner - Replies : 4 - Views : 5 )           »          Tree drag and drop (move, copy to self) (Last Post : ntsiii - Replies : 1 - Views : 4 )           »          Please point me to the correct topic section of thisForum (Last Post : GillyWilly - Replies : 0 - Views : 1 )           »          Flash CS4 constant crashes (Last Post : dzedward - Replies : 2 - Views : 3 )           »          Download a Flash video? (Last Post : David Stiller - Replies : 1 - Views : 2 )           »          Spry repeat Region (Last Post : Hung Kuen Kung Fu - Replies : 0 - Views : 1 )           »          pdf question (Last Post : Joseph Kunz - 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 10-31-2008, 06:22 PM
cryothic
 
Posts: n/a
Diggs:
Default Automatic slideshow image transition

Hi All,

I have an imagecontainer on my site, in which I want to show random images.
So far so good, but I want to animate those image transitions.

I've tried to hide and show the image while a picture is loaded, and link an
effect to the show and hide, but it didn't work proparly.

So, I tried using states. My imagecontainer has now 2 states.
And after a couple of seconds the states change.

All I do in the state change is:
<mx:setProperty target="{imageContainer}" name="source" value="{imagesource}"
/>
where "{imagesource}" is a [Bindable] private var in the same mxml file.

The first statechange works, but after that, returning to the Base state ends
up showing the first (original) image. Changing to the second state again,
shows again the second image.

Is there any way to nicely animate a automatic slideshow ?




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-31-2008, 06:22 PM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: Automatic slideshow image transition

How about having one state per image, maybe generated on the fly. If you need to re-cycle through all the images, store references to the states in an array.
Reply With Quote
  #3 (permalink)  
Old 10-31-2008, 06:22 PM
cryothic
 
Posts: n/a
Diggs:
Default Re: Automatic slideshow image transition

Is it possible to create states dynamicly?
The list of images comes from a xml file.

Reply With Quote


  #4 (permalink)  
Old 10-31-2008, 06:22 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Automatic slideshow image transition


"cryothic" <webforumsuser@macromedia.com> wrote in message
news:gcgb3a$9ml$1@forums.macromedia.com...
> Hi All,
>
> I have an imagecontainer on my site, in which I want to show random
> images.
> So far so good, but I want to animate those image transitions.
>
> I've tried to hide and show the image while a picture is loaded, and link
> an
> effect to the show and hide, but it didn't work proparly.
>
> So, I tried using states. My imagecontainer has now 2 states.
> And after a couple of seconds the states change.
>
> All I do in the state change is:
> <mx:setProperty target="{imageContainer}" name="source"
> value="{imagesource}"
> />
> where "{imagesource}" is a [Bindable] private var in the same mxml file.
>
> The first statechange works, but after that, returning to the Base state
> ends
> up showing the first (original) image. Changing to the second state again,
> shows again the second image.
>
> Is there any way to nicely animate a automatic slideshow ?


This example shows a simple way to accomplish that. Right click to view
source
http://examples.adobe.com/flex2/inpr...otoViewer.html


Reply With Quote
  #5 (permalink)  
Old 10-31-2008, 06:22 PM
cryothic
 
Posts: n/a
Diggs:
Default Re: Automatic slideshow image transition

Thank you.
That's very usefull, I can use that.
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 06:29 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