Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.events.MouseEvent;
- stop();
- homeButton.addEventListener(MouseEvent.CLICK, homeButtonClicked);
- libButton.addEventListener(MouseEvent.CLICK, libButtonClicked);
- tutorialButton.addEventListener(MouseEvent.CLICK, tutorialButtonClicked);
- advcButton.addEventListener(MouseEvent.CLICK, advcButtonClicked);
- contactLabel.addEventListener(MouseEvent.CLICK, contactLabelClicked);
- function homeButtonClicked(e:MouseEvent):void {
- gotoAndStop("home");
- }
- function libButtonClicked(e:MouseEvent):void {
- gotoAndStop("libraries");
- }
- function tutorialButtonClicked(e:MouseEvent):void {
- gotoAndStop("tutorial");
- }
- function advcButtonClicked(e:MouseEvent):void {
- gotoAndStop("advConcepts");
- }
- function contactLabelClicked(e:MouseEvent):void {
- navigateToURL(request,"_blank");
- }
Advertisement
Add Comment
Please, Sign In to add comment