4 Replies Latest reply on Jun 25, 2006 9:51 AM by NSurveyor

    Help with if statement

    mcam
      Hi,

      I need some help. I have my ActionScript reading a php page and it loads a variable in a text box. Here is the script.

      addressVars = new LoadVars();
      addressVars.load("game3.php");
      addressVars.onLoad = function() {
      _root.theName = addressVars.prize_number;

      }

      This works fine. (The prize_number is the value in the php page). But I need it to gotoAndPlay at a certian frame depending on what the variable is (_root.theName).
      For example it the var is 1 I need it to gotoAndPlay frame 5. If the Variable is 2 I need it to gotoAndPlay frame 7 etc...

      Please I need help I'm on very very close deadline.

      Thanks in advance
      Mike