A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Help with Delaying a function!! Please

  1. #1
    Member
    Join Date
    May 2007
    Posts
    38

    Help with Delaying a function!! Please

    Thank you in advance for looking at my question.

    This is my code:

    PHP Code:
    function loadCurrentPage(newPageNode) { 
        
    btn_next._alpha 50
        
    btn_next.enabled false
        
    millisecondsToDelay 25*1000// 21 second
        
    myFutureFunction = function() 

      
    clearInterval(ih); 
      
    btn_next._alpha 100
        
    btn_next.enabled true
      
    // do future stuff here... 

    ih setInterval(myFutureFunctionmillisecondsToDelay); 
    //Enables Next button after 20 seconds (Table of Contents). 
    s

    I am trying to delay when my next button will become enabled. The millisecondToDelay works but after a while it starts to gain and lose time. It is unreliable. Is there a frameToDelay that I could use?

  2. #2
    Senior Member
    Join Date
    Jan 2008
    Location
    Montreal
    Posts
    101
    You posted the same exact question in the Actionscript board and you were answered. You should post your question in only one board.

  3. #3
    Member
    Join Date
    May 2007
    Posts
    38
    Well from your reply to my post I am assuming you are perfect and have never made a mistake. Good job, you should be rewarded.

  4. #4
    Senior Member
    Join Date
    Jan 2008
    Location
    Montreal
    Posts
    101
    Wow ... you jump to your guns quickly! I just wanted to let you know that by posting the same question in 2 different boards, you may have other people trying to help you out for nothing since it may have been answered in the other board.

    And it was exactly that case. By the way I tried to help you out in the other board too and suggested a solution ...

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