0 Replies Latest reply on Feb 7, 2007 10:53 AM by Francis_htli

    actionscript code for zoom in and out

    Francis_htli
      Can anyone explains the meaning of the following actionscript code. The code performs zooming in and out of the movie by clicking zoom in or zoom out button.

      onClipEvent (enterFrame) {
      coef = 1.2;
      if (_root.deplace == "zoom") {
      if (_root.anime._xscale<10000) {
      setProperty ("_root.anime", _xscale, _root.anime._xscale*coef);
      setProperty ("_root.anime", _yscale, _root.anime._yscale*coef);
      }
      }
      if (_root.deplace == "dezoom") {
      if (_root.anime._xscale>50) {
      setProperty ("_root.anime", _xscale, _root.anime._xscale/coef);
      setProperty ("_root.anime", _yscale, _root.anime._yscale/coef);
      }
      }