/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
stop(); import flash.net.navigateToURL; import flash.net.URLRequest; import flash.events.MouseEvent; var getYouTube:URLRequest = new URLRequest("http://www.youtube.com"); /// B Button Get a URL /// B_btn.addEventListener(MouseEvent.CLICK, bClick); function bClick(event:MouseEvent):void{ navigateToURL(getYouTube); } /// G Button Property /// G_btn.addEventListener(MouseEvent.CLICK, gClick); G_btn.addEventListener(MouseEvent.MOUSE_OUT, gOut); function gClick(event:MouseEvent):void{ gotoAndStop("getJargon"); } function gOut(event:MouseEvent):void{ gotoAndStop(1); } /// R Button Property /// R_btn.addEventListener(MouseEvent.CLICK, rClick); R_btn.addEventListener(MouseEvent.MOUSE_OUT, rOut); function rClick(event:MouseEvent):void{ R_btn.alpha -= 0.1; } function rOut(event:MouseEvent):void{ R_btn.alpha = 1; }
Comments
