Skip to main content
Known Participant
June 23, 2017
Answered

HTML Canvas won't export

  • June 23, 2017
  • 1 reply
  • 6906 views

I'm creating a website in an HTML5 Canvas.  It's nearly finished I've gotten all of my previous tests to work.  But after the most recent addition I can't get it to export. It gets stuck at 80%...eventually tells me the script has been running too long and asks if I want to cancel.  I've tried letting it continue a few times.  It never exports.

I also tried removing the most recent bit of code in case that was messing it up...so even with the same code that had worked before, it's not exporting now.  There're new objects and things but I don't think enough to make the file size unmanageable and even if it did, I would think it would still export and just lag more.

Any thoughts on what might be causing this or how I might be able to fix it?  If it doesn't open I can't even check for errors properly.

Thanks

This topic has been closed for replies.
Correct answer Colin Holgate

Thought I'd give an update.  That crazy long export time also translates to the loading time.  I now have it online and it takes close to 10 minutes to load.  Which isn't good at all.  What do I do?!

Here's the link:

OuthouseCartoons


The page took four minutes to load after emptying cache, and about 8 seconds to load a second time.

But, you can make the page be six times faster. Look in your page HTML for this line:

  var loader = new createjs.LoadQueue(false);

add a line to set the maxConnections:

  var loader = new createjs.LoadQueue(false);

  loader.setMaxConnections(6);   //(edit, I used the wrong variable name when I first posted)

That will help a lot. You won't need to republish the FLA, just edit the html.

1 reply

Community Expert
June 23, 2017

Your trying to EXPORT?? if you are using HTML Canvas, and you have code inside... I ASSUME that you are creating this for the web??

If you are creating it for the web... you do not want to Export. You want to go File> Publish Settings and then select "OAM Package"

then under Output name, select the folder where you want to save it and name it.

then you would import this OAM into your website in your desired location in Dreamweaver by selecting Insert>HTML>Animated Composition

hope that helps!

mark

headTrix, Inc. | Adobe Certified Training & Consulting
Known Participant
June 25, 2017

I know about how to publish it for upload and everything.  I'm talking about when you export a preview in the browser to test what you've done.  That's not working.  And I even tried publishing through the publish settings as an experiment and I get the same problem...but I'm not sure why.

Thoughts?

Colin Holgate
Inspiring
June 25, 2017

You can delete some layers, do a test, when it gets stuck click No, do Undo to get the layers back, then try deleting other layers. Do that until it tests ok, then try deleting just some of the layers that made it work.

Once you know what layer causes the problem try deleting a range of frames in that layer, to narrow down which thing is causing the problem.

If the FLA is not top secret you could post it somewhere for us to try too.