Copy link to clipboard
Copied
I've setup an animation in Adobe Animate CC using the HTML5 Canvas template and when I complete the animation in the timeline and go to publish it, all I get in the browser is a white page.
If you select the entire page, you can see the stage is there, but no images or animations display.
I've tried with the javascript embedded, or external, sprite sheets and not, but no joy.
Here's where you can see the output. This is the version with separate js and images.
Is there something I'm missing in having setup the file and published that it's not displaying anything? What next steps might I try?
I've attached screenshots of the settings and the main stage to see if there's anything obvious that's not correct.
Hi.
There are 4 problems when you try to use window.open starting from line 402 to 413.
this.frame_0 = function() {
var _this = this;
/*
Loads the URL in a new browser window.
*/
window.open(' // PROBLEM HERE
window.open('https://achieveaustralia.org.au', '_blank');
', '_blank'); // PROBLEM HERE
}
this.frame_148 = function() {
var _this = this;
/*
Loads the URL in a new browser window.
*/
window.open(' // PROBLEM HERE
window.open('https://achieveaustralia.org.au', '_blank');
', '_blank'); // PROBLEM HERE
}
If you r
...Copy link to clipboard
Copied
Hi.
There are 4 problems when you try to use window.open starting from line 402 to 413.
this.frame_0 = function() {
var _this = this;
/*
Loads the URL in a new browser window.
*/
window.open(' // PROBLEM HERE
window.open('https://achieveaustralia.org.au', '_blank');
', '_blank'); // PROBLEM HERE
}
this.frame_148 = function() {
var _this = this;
/*
Loads the URL in a new browser window.
*/
window.open(' // PROBLEM HERE
window.open('https://achieveaustralia.org.au', '_blank');
', '_blank'); // PROBLEM HERE
}
If you remove lines 402, 404, 411, and 413 your page should load.
Regards,
JC
Copy link to clipboard
Copied
Hi JC, thanks for helping and removing that code has fixed it – although now I have to work out how to make the background have a link to the website as I thought that was the process.
Would be nice if these were straight forward, but on we go.
Copy link to clipboard
Copied
Whenever you get a white page, always, always, always open the brower's developer console, refresh the page, and look for any error messages.
Copy link to clipboard
Copied
Yes Clay, thanks for pointing that out.
Would be helpful if it could help me understand why suddenly at the end of my animation it resolves to just the logo and doesn't keep the entire stage visible, as it does in Animate itself.
Appreciate your input and if you had any bright thoughts for this, I'd welcome it. ![]()
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more