A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Problem with counting game

Threaded View

  1. #1
    Join Date
    Jan 2004

    [HELP] Problem with counting game

    hey guys, I'm working on this counting game for little kids but I have a problem. The function I have works fine the first time its called and shows the right number of tp's but when it's called again it gives almost a random number. Here's the link http://www.geocities.com/xanderjz99/newed-cd.swf

    This is my function:

    function settp() {
    i = 0;
    while (i<=9) {
    _root[vartp+i] = int(random(2));
    if (_root[vartp+i] == 0) {
    _root.vartpon =_root.vartpon+ 1;
    if (_root[vartp+i] == 1) {


    Hope someone can help
    Last edited by Xander99; 03-22-2004 at 08:38 PM.

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