1 Reply Latest reply on Nov 21, 2007 3:02 PM by Some1Won

    Moving an attached movie.

    Victor_K_Hugo
      I have successfully attached the movie fiat to the MC stuff using the command :
      onClipEvent (load) {
      _root.stuff.attachMovie("Fiat", "_root.stuff.Fiat", 1, {_x:1200, _y:10, _xscale:10, _yscale:10});
      }

      but I want the fiat to move accross the screen. I treid using the code :

      onClipEvent (enterFrame) {
      _root.stuff.Fiat._x += 1;
      }

      but nothing happens.
        • 1. Re: Moving an attached movie.
          Some1Won
          Hello,

          The new clip is being attached to ‘_root.stuff’. If you had called it “Apples”, you could access it by going: _root.stuff.Apples

          But you’ve called it "_root.stuff.Fiat”, so in theory you’d have to get at it by going:
          _root.stuff._root.stuff.Fiat

          However, I don’t think you can name your clip "_root.stuff.Fiat", as _root, is reserved? You might want to name it something else.