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");
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
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.
Copy link to clipboard
Copied
Or you can just press F12 in Windows Chrome, like every other browser uses.