1 Reply Latest reply on Jan 6, 2007 1:31 PM by kglad

    rotating a nested movieclip

    globalExpress
      I am trying to rotate a nested movieclip by pressing the nested clip then pressing a rotation command. It works when the clip to rotate is on the _root layer but not when it is within another (which must not rotate). I need to maintain this nesting because I have a zoom and pan function associated with all movieclips in that layer.

      This is the code that I currently have:

      Rotate button -

      on (press) {
      ChangeRotation = getProperty("/rotate", _rotation);
      setProperty("/rotate", _rotation, Number(ChangeRotation)+15);
      }

      Nested movieclip -

      on (press) {
      startDrag("", false);
      }

      on (release) {
      stopDrag();
      }

      on (release) {
      setProperty("/rotate", _name, "");
      setProperty("", _name, "rotate");
      }