dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Please help me debug this script!

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    15
    Please help me debug this script.

    ------------

    Frame 1:

    _root.pris.stiger = "0";
    if (_root.main.r1_1._visible == true) {
    _root.pris.stige8 = "1";
    _root.pris.stige9 = "1";
    }

    Frame 2:

    if (_root.pris.stige8==1) {
    _root.pris.stiger = "_root.pris.stiger+1";
    }
    if (_root.pris.stige9==1) {
    _root.pris.stiger = _root.pris.stiger+1;
    }

    Frame 3:

    _root.pris.display = ((_root.pris.stiger)*185);


    -------------

    _root.pris.display is also a variable in a dynamic textbox.

    Why doesn't the textbox display the value (370) when _root.main.r1_1 is visible?


    thanks in advance




  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    467
    here is my correction:
    Code:
    Frame 1
    _root.pris.stiger = ; 
    if (_root.main.r1_1._visible == true) { 
    _root.pris.stige8 = 1; 
    _root.pris.stige9 = 1; 
    } 
    
    Frame 2
    if (_root.pris.stige8 == 1) { 
    _root.pris.stiger ++; 
    } 
    if (_root.pris.stige9 == 1) { 
    _root.pris.stiger ++; 
    } 
    
    Frame 3
    _root.pris.display = ((_root.pris.stiger)*185);
    hope this works

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    15
    Hey!

    The script still doesn't work. I made a test-fla with only the script inside. If I send it to you, could you look at it. Please...


  4. #4
    Senior Member
    Join Date
    Sep 2000
    Posts
    467
    sure sent it to letser@hotmail.com

  5. #5
    Senior member? I'm 14!
    Join Date
    May 2001
    Location
    Why you want to know you stalker!
    Posts
    316

    Arrow

    You might get more responce about scripting in one of the actionscripting topics. Just trying to help.!)

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