0 Replies Latest reply on Feb 22, 2008 2:01 AM by John From Don

    Parsing Variables

    John From Don Level 1
      Hi there,

      Please help: I am tying to get my Flash file to work, I am sending variables (XY_xx and XY_yy) to my Flash from Authorware and using the code below, trying to work out that variable then to convert the value of the variable XY_x or XY_y.

      It just does not seem to use the logic. Please please help, as it is now taking up so much time!!

      Thanks in Advance
      John

      The Code:
      XY_xx = number.XY_xx;
      XY_xy = number.XY_xy;

      if (XY_xx == 1) {
      XY_DUMMY = 666;
      XY_x = -5;
      }
      if (XY_xx == 2) {
      XY_x = -4;
      }
      if (XY_xx == 4) {
      XY_x = 4;
      }
      if (XY_xx == 5) {
      XY_x = 5;
      }
      if (XY_yy == 1) {
      XY_y = -5;
      }
      if (XY_yy == 2) {
      XY_y = -4;
      }
      if (XY_yy == 4) {
      XY_y = 4;
      }
      if (XY_yy == 5) {
      XY_y = 5;
      }