Guest User

Untitled

a guest
Apr 21st, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.events.MouseEvent;
  2.  
  3. stop();
  4.  
  5. homeButton.addEventListener(MouseEvent.CLICK, homeButtonClicked);
  6. libButton.addEventListener(MouseEvent.CLICK, libButtonClicked);
  7. tutorialButton.addEventListener(MouseEvent.CLICK, tutorialButtonClicked);
  8. advcButton.addEventListener(MouseEvent.CLICK, advcButtonClicked);
  9.  
  10. contactLabel.addEventListener(MouseEvent.CLICK, contactLabelClicked);
  11.  
  12. function homeButtonClicked(e:MouseEvent):void {
  13.     gotoAndStop("home");
  14. }
  15.  
  16. function libButtonClicked(e:MouseEvent):void {
  17.     gotoAndStop("libraries");
  18. }
  19.  
  20. function tutorialButtonClicked(e:MouseEvent):void {
  21.     gotoAndStop("tutorial");
  22. }
  23.  
  24. function advcButtonClicked(e:MouseEvent):void {
  25.     gotoAndStop("advConcepts");
  26. }
  27.  
  28. function contactLabelClicked(e:MouseEvent):void {
  29.     var request:URLRequest = new URLRequest("mailto:[email protected]");
  30.     navigateToURL(request,"_blank");
  31. }
Advertisement
Add Comment
Please, Sign In to add comment