3 Replies Latest reply on Aug 31, 2010 7:22 AM by Ned Murphy

    AS2: how to apply multiple properties to a single movieclip

    Graham vdR Level 1

      Hi there

       

      Is there a way, in ActionScript 2, to set multiple properties for an exising movieclip in one command?

       

      For example, is there a way to write something like this more succinctly?:

       

      myMovieClip._x = 10;

      myMovieClip._y = 10;

      myMovieClip._alpha = 100;

      myMovieClip._rotation = 0;

       

      I'm thinking something like:

       

      myMovieClip(some bit of code)(_x = 10, _y = 10, _alpha = 100, _rotation = 0);

       

      I'd appreciate any advice.