7 Replies Latest reply on Apr 26, 2006 7:55 AM by kglad

    using eval on variables' names

    Level 7
      The line
      eval("_root."+this.p).display_text.text=this.v
      works fine, whereas
      eval("_root."+this.n)=eval("_root."+this.n)+this.step;
      says "Left side of assignment operator must be variable or property"

      p is a name of an object created with arrachMovie
      n is the name of a variable containing a number

      Using this[] in place of eval() raises no errors but does no do the
      assignment meant
      What is the explaination?