A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How can you slow down dynamic text scrolling?

  1. #1
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389

    How can you slow down dynamic text scrolling?

    I'm creating a relatively long text which I'd like to disappear as soon as the music quits playing, but I've no idea how to approach the problem of slowing it down so it can be read at a coherent speed. Turning down the framerate makes it very choppy

    I'm using

    Code:
    my_txt.scroll++;
    scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
    and its obviously not allowing the time to be read as it should.

    I've just seen an example somewhere else using math.abs, but if someone could provide me with a simpler idea I'd be very grateful

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    there are other ways to run things less often than turning the framerate down. see, for example, setInterval

    or, you could try to wrap it in one extra container, then make it bigger, and scale that container down accordingly - this way the code you already have will take more time to finish.
    Last edited by realMakc; 05-22-2016 at 09:43 AM.
    who is this? a word of friendly advice: FFS stop using AS2

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