Peter Elst

Flash Platform Consultant
  • Home
  • About me
  • Articles
  • Downloads
  • Contact me

Improved doLater method

20 12 2005

Igor from play.ground has just blogged about his improved doLater method for postponing ActionScript calls. Its a very useful function similar to setTimeout in Flash 8, be it frame based rather than using a timed interval.

http://play.ground.gr/?p=82

As soon as I have some time to spare I’ll make one that supports both frame and time based intervals, shouldn’t be too hard to do. Would also be nice to have the doLater interval be relative to a specific event but will have to give that some more thought.

« Flash 8 - setTimeout and XML.idMap The Socialization of the Web »



Actions

Informations

  • Date : 20 December 2005
  • Categories : Flash

2 responses to “Improved doLater method”

21 12 2005
David (07:52:12) :

Hi Peter,
I think that this doLater functionality exists in at least one open-source library. as2lib (www.as2lib.org) contains an impulse package (org.as2lib.env.event.impulse). There is an Impulse interface. Here is a snip from the docs for the Impulse interface:

Impulse is a definition for events that gets executed periodically.

Periodical events could be frame executions, seconds, hours or dates.
Impulse allows to seperate the certain kind of Impulse from the
execution code.

I haven’t actually tried it out, so I can’t tell you firsthand how well it works. I suppose you can see the email address I entered when posting this comment. It would be nice if you have a chance to try this package, if you could let me know what you think of it. Thanks!

21 12 2005
Peter (08:10:10) :

Thanks for that David, I’ll certainly give that a try — I’ve briefly looked at as2lib in the past but didn’t realize that was in there, very cool!





Conferences

Flash on the Beach Speaker

Training Partners

multimediacollege

SkillsMatter

Badges

Alltop, confirmation that I kick ass

  • Categories

    • AIR RSS category feed
    • Ajax RSS category feed
    • CSS RSS category feed
    • Eclipse RSS category feed
    • Events RSS category feed
    • Flash RSS category feed
    • Flash Lite RSS category feed
    • Flex RSS category feed
    • Gadgets RSS category feed
    • General RSS category feed
    • JSFL RSS category feed
    • Mac RSS category feed
    • Open Source RSS category feed
    • PHP RSS category feed
    • Podcasts RSS category feed
    • Publications RSS category feed
    • Rants RSS category feed
    • Reviews RSS category feed
    • Thought of the Day RSS category feed
    • Training RSS category feed
    • Twitter RSS category feed
    • Video RSS category feed
  • Resources

    • Josh Tynjala
    • Matthew David
    • Guy Watson
    • Keith Peters
    • Peter Hall
    • LordAlex Leon
    • Sas Jacobs
    • Mario Klingemann
    • Simon Barber
    • Scott Barnes
    • Edwin van Rijkom
    • Peldi Guilizzoni
    • Veronique Brossier
    • Brajeshwar Oinam
    • AndrĂ© Michelle
    • Rich Tretola
    • Marco Casario
    • Patrick Mineault
    • Serge Jespers
    • Ted Patrick

     
     

    Adobe Community Expert

    See my profile on LinkedIn



    Harz Ferienwohnung Suchmaschinenoptimierung Geschenkideen Harz Ferienwohnung Pagerank Webkatalog Webhosting