6 Replies Latest reply on Jul 6, 2008 6:00 PM by kglad

    on clip event

    cherubianmoon1 Level 1
      Hi

      What is the right action script for this on clip event to put it in its own layer in the timeline?


      onClipEvent (load) {
      _x = 22;
      _y =113;
      div = 5;
      }





      onClipEvent (enterFrame) {
      _x += (endX-_x)/div;
      _y += (endY-_y)/div;

      _root.pic1.onRelease = function() {
      endX = 22;
      endY = 113;
      };
      _root.pic2.onRelease = function() {
      endX = -282;
      endY = 113;
      };
      _root.pic3.onRelease = function() {
      endX = -582 ;
      endY = 113;
      };

      }



      Thanks in Advanced