Advertisement
prodiejhay

Untitled

Aug 21st, 2017
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stop();
  2.  
  3. rainbow_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);
  4.  
  5. function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void
  6. {
  7.     gotoAndPlay(6);
  8. }
  9.  
  10.  
  11. brown_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);
  12.  
  13. function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
  14. {
  15.     gotoAndPlay(46);
  16. }
  17.  
  18.  
  19. stage.addChild(cursor_mc);
  20. cursor_mc.mouseEnabled = false;
  21. cursor_mc.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor_2);
  22.  
  23. function fl_CustomMouseCursor_2(event:Event)
  24. {
  25.     cursor_mc.x = stage.mouseX;
  26.     cursor_mc.y = stage.mouseY;
  27. }
  28. Mouse.hide();
  29.  
  30.  
  31. //*restores default cursor
  32. //cursor_mc.removeEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor_2);
  33. //stage.removeChild(cursor_mc);
  34. //Mouse.show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement