Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import flash.events.MouseEvent;
  2.  
  3. backgroundButton.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
  4. backgroundButton2.addEventListener(MouseEvent.CLICK, onClick2, false, 0 ,true);
  5.  
  6.  
  7. function onClick(evt:MouseEvent):void {
  8. backgroundOne.visible = !backgroundOne.visible;
  9. }
  10. function onClick2(evt:MouseEvent):void {
  11. backgroundTwo.visible = !backgroundTwo.visible;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement