SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict djh's Avatar
    Join Date
    Apr 2000
    Location
    Long Beach, CA
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Call functions based on timer

    Hi,

    Can someone help me with calling functions at certain time intervals?

    I'm trying to call the same functions (with different arguments) at various times on the timeline...

    I've tried
    Code:
    stop();
    var pauseDuration = 5000; 
    setInterval(this, "play", pauseDuration);
    but it doesn't work. Neither does the flash reference's way of setInterval

    basically, I want to do:
    Code:
    playIntro("intro_arrow",673,6.5);
    playIntro("mask_copy",600,17.5);
    
    ... pause for 10 seconds 
     
    doRotate("intro_arrow",180);
     
    ... pause 10 more
     
    playIntro("intro_arrow",173,6.5);
    playIntro("mask_copy",100,17.5);
     
    ... pause 10 more
     
    doRotate("intro_arrow",0);
     
    ... pause 10 more
     
    playIntro("intro_arrow",173,6.5);
    playIntro("mask_copy",100,17.5);
    HELP!

  2. #2
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's an example you can download, I pretty much just created a countdown timer and you can do what you want with it.

    http://www.plasmapages.com/timer.fla

    hope this helps.


Bookmarks

Posting Permissions

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