0 Replies Latest reply on Dec 2, 2010 8:18 PM by FLCNET

    Script AS 1.0 for AS 2.0 - Help PLZZZZ

    FLCNET

      Please how do I convert the code down from AS 1.0 to AS 2.0??

      onClipEvent (mouseDown) {
      if (k> 0)
      {
      return;
      }
      zoom = true;
      dir == 1? (Dir =- 1): (dir = 1);
      if (dir == 1)
      {
      pt = {x: _root._xmouse, y: _root._ymouse};
      }
      }
      onClipEvent (enterFrame) {
      if (! zoom)
      {
      return;
      }
      _root._xscale + = dir * k * 50 / 8;
      _root._yscale + = dir * k * 50 / 8;
      var pt2 = {x: pt.x, y: pt.y};
      _root.localToGlobal (pt2);
      _root._x -= (pt2.x-pt.x);
      _root._y -= (pt2.y-pt.y);
      k + +;
      if (k == 8)
      {
      zoom = false;
      k = 0;
      }
      }

      File link: http://downloads.flashkit.com/movies/Effects/Other/Auto_zoo-T_Norman-6578/Auto_zoo-T_Norma n-6578.zip