Advertisement
zachn

Untitled

Sep 11th, 2017
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public function videoScrubMove(e:TimerEvent):void {
  2.             if (dragging){
  3.                 cont.videoControl.getChildByName("scrub").x = mouseY; //standard dragging
  4.             } else {
  5.                 cont.videoControl.getChildByName("scrub").x = 170 + (imageArray[14].loader.playProgress * 1070); //standard scrubber moving
  6.             }
  7.         }
  8.        
  9.         public function videoDrag(evt:MouseEvent):void {
  10.             switch(evt.type) {
  11.                
  12.                 case MouseEvent.MOUSE_DOWN:
  13.                     dragging = true;
  14.                 break;
  15.  
  16.                 case MouseEvent.MOUSE_UP:
  17.                     dragging = false;
  18.                 break;
  19.                
  20.             }
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement