2 Replies Latest reply on Jan 10, 2007 5:34 AM by Newsgroup_User

    goto problem

    metaclay
      hi all,

      i use this
      :
      attachMovie("mv_lib",inst_name,index);

      inst_name is a varibale that holds the instance name.
      after creating the instance, i need to modify them.
      so then i put this codes:

      eval(inst_name)._y=100;
      eval(inst_name)._x=200;
      eval(inst_name).gotoAndPlay(2);

      the first and second line work fine, but the third (gotoandplay) doesn't.
      does it mean i cannot use eval() for this?
      anyone have any solution?

      thanx.
        • 1. Re: goto problem
          Marghoob Suleman Level 1
          Hi...

          you could do like this... this should work.

          • 2. Re: goto problem
            Level 7
            > eval(inst_name).gotoAndPlay(2);
            >
            > the first and second line work fine, but the third (gotoandplay)
            > doesn't.
            > does it mean i cannot use eval() for this?
            > anyone have any solution?

            What exactly do you mean by it doesn't work. There is not reason why it
            would not work. However, there may be other things happening (maybe in code
            you're not showing us) that makes it look like it isn't working. Can you
            upload your FLA and provide a link to it?
            --
            Jeckyl