Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.events.MouseEvent;
- backgroundButton.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
- backgroundButton2.addEventListener(MouseEvent.CLICK, onClick2, false, 0 ,true);
- function onClick(evt:MouseEvent):void {
- backgroundOne.visible = !backgroundOne.visible;
- }
- function onClick2(evt:MouseEvent):void {
- backgroundTwo.visible = !backgroundTwo.visible;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement