Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- import flash.display.Sprite;
- import flash.display.MovieClip;
- import flash.events.MouseEvent;
- import flash.events.Event;
- public class Buttons extends Sprite
- {
- public var btnLOAD:MovieClip;
- public var btnRESUME:MovieClip;
- public function Buttons()
- {
- btnLOAD.addEventListener(MouseEvent.CLICK, mouseDownLoad);
- btnRESUME.addEventListener(MouseEvent.CLICK,mouseDownPause);
- }
- private function mouseDownLoad(e:MouseEvent):void
- {
- dispatchEvent(new Event(Event.CHANGE));
- }
- private function mouseDownRESUME(e:MouseEvent):void
- {
- dispatchEvent(new Event(Event.CHANGE));
- }
- }
- }
Add Comment
Please, Sign In to add comment