Copy link to clipboard
Copied
how i can create get url from as 2.0 and how to write this in as 3.0 example on(press)geturl www.adobe.com please tell me how to write this in action script 3.0 thanks
Copy link to clipboard
Copied
use navigateToURL().
Copy link to clipboard
Copied
You can use Code Snippets in CS5
/* Click to Go to Web Page
Clicking on the specified symbol instance loads the URL in a new browser window.
Instructions:
1. Replace http://www.adobe.com with the desired URL address.
Keep the quotation marks ("").
*/
myButton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}
Please indicate if this is helpful.