Copy link to clipboard
Copied
I am creating a simple banner add with a button covering the screen. I added the action Click to Go to Web Page to the button.. When I add the action the screen displays blank. When I remove the action the screen shows again but the button does not work. This is the action script that automatically adds when I double-click
Click to Go to Web Page
/* 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 ("").
*/
button_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_4);
function fl_ClickToGoToWebPage_4(event:MouseEvent):void
{
navigateToURL(new URLRequest("https://www.ussoccer.com"), "_blank");
}
Please help. I'm very frustrated.
Copy link to clipboard
Copied
you're creating an as3 banner ad???
Copy link to clipboard
Copied
I found the answer here
Now just like the other user I feel silly. I was using ActionScrupt instead of html5 actions.
Copy link to clipboard
Copied
well, the correct answer is here too.