1 Reply Latest reply on Jul 29, 2006 6:48 PM by butcho

    Publishing to Flash 8 / 6 differences?

    NoamJ
      I have created a button that when pressed, moves a picture to the right in a smooth slide (this is for browsing through thumbnails of pics). When published to Flash 6 it works perfectly, but when publishing to Flash 8 it doesn't work. I have to publish to 8 because I have FLVPlayback flash video objects. Can anyone help as to how to make it work on Flash 8?

      The button code ActionScript is:

      on (release) {
      if (targetx>-500) {
      targetx -= +78;
      }
      }

      The picture ActionScript is:

      onClipEvent (load) {
      accel = 0.1;
      rate = 0.2;
      targetx = 0;
      }
      onClipEvent (enterFrame) {
      x = x*accel+(targetx-_x)*rate;
      _x += x;
      if (Math.abs(targetx-_x)<1) {
      _x = targetx;
      }
      }


      Thanks!