A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] help to score counter

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    5

    [F8] help to score counter

    I have some problems making a score counter in my flash 8 movie, so I hope somebody can help me!

    The score counter should give the player a point, each time the player reach frame 40 or 50 in my movie.

    First I created one dynamic textfield on frame 1 and called it scorecounter in the var field.

    Then I wrote this code in frame one of my movie:

    scorecounter = 0;



    After this I wrote this code on frame 40 and 50:



    onEnterFrame = function {

    scorecounter++; //by the way it doesn`t help if I write: _root.scorecounter += 1 or ++;

    }



    but nothing happens when the movie enters frame 40 or 50. Anybody who knows why?

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    try this, let me know if it works for you
    Last edited by EQFlash; 04-04-2008 at 09:29 PM.
    If you don't think you're going to like the answer, then don't ask the question.

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