A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: actionscript 2.0 need help showing score on next frame!!!

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2009
    Location
    Elmhurst, Illinois
    Posts
    20

    Angry actionscript 2.0 need help showing score on next frame!!!

    hello my name is fabo,

    my problem is i made a game and i need to know how to show the game score in the next frame, but i don't know what to script in the next frame!!! Here is my script for my frame that shows my game with the score at the end of the the countdown


    var score:Number = 0;
    var Seconds:Number = 10;

    function timer():Void {
    Seconds--;
    trace(Seconds);
    if (Seconds == 0) {
    _root.gotoAndPlay(5);
    clearInterval(timeInt);
    }
    }

    timeInt = setInterval(timer, 1000);
    stop();




    will someone edit my next frame to show the final score
    or tell me what to write in the next frame??? thanks alot

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Your variables need to be global. If they are global then they can be access from anywhere.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

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