2 Replies Latest reply on Feb 2, 2008 5:03 AM by Newsgroup_User

    Shorthand

    Tony Heagren Level 1
      Hi all,

      just looking for a shorthand version of this code - the example has only 3 but the real world file currently has 288. This number can change dynamically according to the site owner's edits.
      "num" is a number in a dynamic text field. "mimi" is a data object holding variables "&credit1=blah balh&" "&credit two =blah blah bleet&" these are double ampersand delimited.
      Returning to Flash seems somehow harder than starting from scratch - my head tells me there is a simple
      solution to this using a loop but I can't look deep enough into my distant coding past to find it !

      All and any help much appreciated.
      Best wishes
      Tony
      - - - - - - - -
      Button code:

      on (release) {
      if (num == 1) {
      whoha = mimi.credit1;
      } else if (num == 2 ) {
      whoha = "mimi.credit2";
      } else if (num == 3) {
      whoha = "mimi.credit3";
      }
      }