1.Create a button in your library.
2.Drag your button onto the stage two times and position them.
3.Give names to the instance ; btn_01 and btn_02.
4.Add the Event Listeners as in the below code:
btn_01.addEventListener( MouseEvent.CLICK, goto_domain1 );
btn_02.addEventListener( MouseEvent.CLICK, goto_domain2 );
function goto_domain1(e:MouseEvent):void
{ navigateToURL( new URLRequest( "http://www.domain1.com" ), "_blank" );
}
function goto_domain2(e:MouseEvent):void
{
navigateToURL( new URLRequest( "http://www.domain2.com" ), "_blank" );
}
Making URL buttons in Flash ActionScript 3.0
1.Create a button in your library.
2.Drag your button onto the stage two times and position them.
3.Give...
in flash actionscript 3.0 making url buttons
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users