Revision: 13718
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 3, 2009 15:06 by Pablo
Initial Code
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; }
Initial URL
Initial Description
Initial Title
How to use Buttons
Initial Tags
Initial Language
ActionScript 3