A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: How to make a ticker that counts up

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Posts
    16

    How to make a ticker that counts up

    I had a someone contact me and is looking for a ticker like the one at http://www.priceline.com in the upper right hand corner.

    It needs to always be counting up and not just reset each time it loads.

    Any ideas on how to build something like this and what it would involve.

    Thanks

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    You'd need more information. Where is the data coming from. I doubt that the counter at priceline is getting realtime data but it could be.

    Your contact would need to let you know where the data is coming from and in what form is it available. Then it's a matter of getting it and displaying it.

  3. #3
    Junior Member
    Join Date
    Oct 2006
    Posts
    16
    Thanks,

    It turns out the information is not real data. It just needs to keep counting up, so for instance if you visited the site it would read 1,047 and if you checked it out a few days later it woud be 2,189 or something.

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Hmm I guess the way I'd go at it would be make a simple movie that looks for a shared object that has the last count, if found use this to start counting from. If not found use a default number to start counting from and save a shared object with that number.

    I've thought of several problems with thtat already as I typed it, but it should basically work.

    You could perhaps do a hit counter thing that would not keep going up while on the page like the priceline example does.

  5. #5
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Using a php like the necro counter is fine, set up a small swf with 3 pages, call the value of the counter on page 1, page 2 add 1 to this value then page 3 gotoAndPlay(2). This will keep the counter running. Now all you need to do is save the value of the counter at some interval or on some action. This could be a mouseover of this or another swf on the same page, or it could be a time interval.

  6. #6
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Thought I had it...there is a hole in my thought so I'll revisit it

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center