I’ve been working with Adobe Flash for about a month now, and along the way I have found several helpful links and tips to survive the madness. I came across a simple tutorial that illustrates how to make URL buttons in ActionScript3. The steps are posted below:
- Create a button in the library.
- Drag it onto stage 2 times and position them.
- Give the instance names button_01 and button_02.
- Add Event Listeners as shown in the code below:
button_01.addEventListener( MouseEvent.CLICK, goto_hongkiat );
button_02.addEventListener( MouseEvent.CLICK, goto_koflash );
navigateToURL( new URLRequest( “http://www.hongkiat.com” ), “_blank” );
navigateToURL( new URLRequest( “http://www.koflash.com” ), “_blank” );
After these steps are completed, you have successfully linked a button to a URL page! You can find other great tips like these here.