|
|
Make URL buttons in ActionScript 3.0 - Flash
|
Views : 375
|
|
Tagged in : Flash
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Make URL buttons in ActionScript 3.0
1. Create a button in the library.
2. Drag it onto stage 2 times and position them.
3. Give the instance names button_01 and button_02.
4. Add Event Listeners and code below:
button_01.addEventListener( MouseEvent.CLICK, goto_hongkiat );
button_02.addEventListener( MouseEvent.CLICK, goto_koflash );
function goto_hongkiat(e:MouseEvent):void
{
navigateToURL( new URLRequest( "http://www.hongkiat.com" ), "_blank" );
}
function goto_koflash(e:MouseEvent):void
{
navigateToURL( new URLRequest( "http://www.koflash.com" ), "_blank" );
}
|
|
By Sanju, On - 2009-12-29 |
|
|
|