Guest User

Untitled

a guest
Aug 13th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     import flash.display.Sprite;
  4.     import flash.display.MovieClip;
  5.     import flash.events.MouseEvent;
  6.     import flash.events.Event;
  7.     public class Buttons extends Sprite
  8.     {
  9.         public var btnLOAD:MovieClip;
  10.         public var btnRESUME:MovieClip;
  11.         public function Buttons()
  12.         {
  13.             btnLOAD.addEventListener(MouseEvent.CLICK, mouseDownLoad);
  14.             btnRESUME.addEventListener(MouseEvent.CLICK,mouseDownPause);
  15.         }
  16.         private function mouseDownLoad(e:MouseEvent):void
  17.         {
  18.             dispatchEvent(new Event(Event.CHANGE));
  19.         }
  20.         private function mouseDownRESUME(e:MouseEvent):void
  21.         {
  22.             dispatchEvent(new Event(Event.CHANGE));
  23.         }
  24.  
  25.  
  26.     }
  27.  
  28. }
Add Comment
Please, Sign In to add comment