Announcement Announcement Module
No announcement yet.
Help: slowing-down a for loop??? Page Title Module
Move Remove Collapse
Search Search Module

Advertisement Advertisement Module

Featured Images Featured Images Module

Mediabistro Creative Sites Mediabistro Creative Sites Module
Latest Topics Latest Topics Module

  • Judy Smith
    Comment on Political graphic artists?
    Judy Smith
    Well, now that I've finally posted the classified, I guess I can assume that once again it wasn't visible due to moderation... So - now I have to figure out how to subscribe to it to become eNotified...
    Today, 08:25 AM
  • Judy Smith
    Comment on Political graphic artists?
    Judy Smith
    Uh, I realize this is very belated, but I vaguely remember having tried to find this forum (knowing I left loose ends) - but failing to locate it. At this time I finally found it, after having first tried...
    Today, 07:13 AM
  • ThePreyMan PHS
    Reply to Custom social icons
    ThePreyMan PHS
    Justo to clarify, I didn't change the colors of the actual logos, per say, as in the 'F' of the facebook logo was never yellow. The logos were all black, which is fine, and the backgrounds to them were...
    Today, 06:36 AM
  • ThePreyMan PHS
    Reply to Custom social icons
    ThePreyMan PHS
    It still leaves me in uncertainty. What I had before, in the creation of this thread, seemed to me to be respectable to their branding. I can understand not having the Facebook logo turned into a gun...
    Today, 06:33 AM
  • ThePreyMan PHS
    Reply to Confidence, Growth, and a Mentor
    ThePreyMan PHS
    Thanks for the bits of info, guys. Helps.
    Today, 06:23 AM
Advertisement Advertisement Module

Sponsors Sponsors Module

Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help: slowing-down a for loop???

    Title: Help: slowing-down a for loop???


    My script:

    varisms=['Natural','Postmodern','Surreal','Dada','Formal',' Real','Symbol','Expression','Futur','Ambigu'];
    this.ism_btn.createTextField('submit_txt',1,100,50 ,50,20);

    How do I decrease the speed of the above 'for loop' each time it iterates?

    I would like the array elements to display in the (ism_txt) text box, starting really fast, slow down, and finally stopping/displaying last element of array in text box.

    Is that possible?

    Should I us setInterval?

    Obviously, I am a novice actionscripter... If I am going about this the wrong way, please let me know... maybe I should not be trying to do this all via AS?

    Anyway, any help would be appreciated.


  • #2
    I don't know how to do it in as but if you're familiar at all with flash, you can easily change your looping speed there via the fps (frames per second) box.

    Knowledge speaks but wisdom listens....Jimi Hendrix


    • #3
      Or you could easily insert ANOTHER for loop and adjust it for the time. In Flash, is there a WAIT command? I'm not a Flash programmer at all, but the scripting language sounds a lot like C or other compiled languages...

      I'm a computer systems consultant and technician, but my business is very localized.
      However, feel free to check out my site, which always has new and interesting
      articles on using computers:
      CATALYST Techworks Consulting


      • #4
        You could probably use a timer, but I don't know how to do that in ActionScript. Case would know, but he has been very busy lately.

        P r o d u c t i o n s


        • #5
          Set it up as a function and set a variable to control the interval.

          here's a tutorial on intervals and functions

          alter the variable by whatever at the end of your original script either by adding, subtracting or dividing is a nice way to achieve a 'slowdown' effect

          let me know how you get on

          hand :
          eye :
          mouth : 07966 160983

          Post Edited (Ollie Lindsey) : 10/15/2004 11:12:32 AM GMT


          Mediabistro A division of Prometheus Global Media home | site map | advertising/sponsorships | careers | contact us | help courses | browse jobs | freelancers | content | member benefits | reprints & permissions terms of use | privacy policy Copyright © 2014 Mediabistro Inc. call (212) 389-2000 or email us