A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Display timer

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Location
    central java
    Posts
    1

    Unhappy Display timer

    hi guys,, I want to make timer for the game I make. I already make the timer and it works well. the problem start when I add frame/ scene before the timer, the timer is hidden. can you solve this problem for me please.

    I used this code for my timer

    Actionscript Code:
    //timer
    timer = 0;
    countup = function(){
        timer++;
    }
    countupInterval = setInterval(countup,1000);

    and at next frame where I want to display result of the timer I used

    timer_txt.text = timer;

    here I also attached my file. please solve this problem for me...
    Attached Files Attached Files

Tags for this Thread

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