• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Screen displaying blank after adding button in browser

New Here ,
Jun 08, 2022 Jun 08, 2022

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.

Views

75

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2022 Jun 08, 2022

Copy link to clipboard

Copied

you're creating an as3 banner ad???

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2022 Jun 08, 2022

Copy link to clipboard

Copied

I found the answer here

https://community.adobe.com/t5/animate-discussions/adding-simple-script-causes-testing-and-publishin...

Now just like the other user I feel silly. I was using ActionScrupt instead of html5 actions.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2022 Jun 08, 2022

Copy link to clipboard

Copied

LATEST

well, the correct answer is here too.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines