2 Replies Latest reply on May 24, 2006 4:04 AM by Newsgroup_User

    simple syntax question (AS1!)

    Level 7
      Hi List,


      I usually do not write complex AS but would like to simplify the
      following code with a for-loop

      if (_parent.a1._currentframe==2) { _root.vara1 = true; } else {
      _root.vara1 = false; }
      if (_parent.a2._currentframe==2) { _root.vara2 = true; } else {
      _root.vara2 = false; }
      if (_parent.a3._currentframe==2) { _root.vara3 = true; } else {
      _root.vara3 ...


      It would be easy to give out this as text, but I don't know how to do
      this with variables and code that should be processed.
      (I have to use ActionScript 1 !!)

      Could someone please help?


      thanks in advance
      oe