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

Screen turns white when I preview after I add code in actions

Explorer ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

My file works until I add this code to "Actions" then when I load the file in muse the file turns white in the preview rather then displaying my animation.

This is the code I am adding

/* 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_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_7);

function fl_ClickToGoToWebPage_7(event:MouseEvent):void

{

    navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");

}

/* 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_8);

function fl_ClickToGoToWebPage_8(event:MouseEvent):void

{

    navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");

Views

280

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
LEGEND ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

Are you working in an ActionScript 3 FLA or an HTML5 Canvas one? The code snippet you used is AS3, and would lead to errors in Canvas.

Your fl_ClickToGoToWebPage_8 function is missing a } at the end

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
Contributor ,
Aug 12, 2017 Aug 12, 2017

Copy link to clipboard

Copied

Your animation won't run if there is an error which is likely the reason why you would only see a white screen. In chrome, you can open the console in chrome by pressing Ctrl + Shift + J on Windows or Cmd + Opt + J on Mac.

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
LEGEND ,
Aug 13, 2017 Aug 13, 2017

Copy link to clipboard

Copied

LATEST

Or you can just press F12 in Windows Chrome, like every other browser uses.

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