1 Reply Latest reply on Feb 7, 2007 7:13 PM by coldMiner

    Convert old site to AS2

    Level 7
      Hi all,

      I built our company's web site long ago using Flash MX and now
      we'd like to update it using some of the new features in Flash 8 (blur etc).

      So, I started building the new site and imported a load of code from
      the old (AS1)
      site which now won't work !

      Anyone got any tips or tutorials on making a navigation system (sliding) like
      this: http://www.big-giant-head.com (the old site, still live) in AS2 ?
      I, as a desiner not a programmer, have done my best but I'm stumped on how
      to simply slide an MC back and forth with easing like I used to in AS1.

      All and any help much appreciated.

      Best wishes
      Tony



      The old "sliding" code I used is this:



      onClipEvent (load) {

      POZ = new Array("0", "-430", "-860", "-1290", "-1720", "-2800", "430");

      }

      onClipEvent (enterFrame) {

      r += (rot-r)/6;

      rectan._x = r;

      }



      then the action on the button wouuld simply be:

      on (release) {

      rot = POZ[1];

      }