Thanks for the suggestion.

I thought about the hbox, the thing you are going to want to remove the first image when it is no longer visible to keep memory usage low.  This will jump all of the images to the left when the layout is redone.

After over-thinking this problem yesterday, I just sat down and did all the layout manually at the end of the day.  I've still got some bugs left but it seems like it was simpler than I thought.


- Dan

On 11/7/06, Ashish Goyal <[EMAIL PROTECTED]> wrote:

I can think of one way you can achieve this. Add all images to HBox. On Hbox's creationComplete event use Timer class to set timer for say 500 ms. In the timer handler function increment the value of horizontalScrollPosition by 5 px. You can also check if the horizontalScrollPosition is greater than maxhorizontalScrollPosition and then set horizontalScrollPosition to 0 again.

 

BTW, you can check out flash.utils package for more info on Timer class.

 

-Ashish

 

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Freiman
Sent: Tuesday, November 07, 2006 12:34 PM
To: flexcoders
Subject: [flexcoders] Image Scroller

 

I need an image scroller.  It's a standard concept.  You have a set of images in a horizontal list and the list is animated to scroll from right to left.  It never stops scrolling because the images are looped (it's like the text scrollers people used to make in Java when applets first showed up).

This seems to me like it should be easy but the looping is throwing me.

Some extra incentive to help me: it's for a charitable non-profit (a local Boys and Girls Club).  (Yes I'm channeling my mother to try and guilt people.)

- Dan


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to