Skip to main content
Known Participant
January 28, 2018
Answered

How much AS3 is supported in Adobe Animate CC when converting to HTML5 canvas

  • January 28, 2018
  • 1 reply
  • 1389 views

Hello,

I was thinking of creating quiz applications in HTML Canvas format by using / taking advantage of the Toolkit for CreateJS in Adobe Animate CC 2018.
I think I've read somewhere on the internet saying that all of AS3 codes written on the Adobe animate/flash timeline are supported when exporting the Adobe Flash/Animate document to HTML5 canvas format using the CreateJS, but is it really true?

Today, I have launched Adobe Animate 2018 CC and selected New > HTML5 Canvas document.

Then I have wrote the most basic AS3 code:

/* js

stop();

*/

on the first frame of the timeline then I have published the document in Javascript/HTML format but it looks like all of the AS3 codes are ignored and the exported HTML and javascript simply plays until the end without stopping at the first frame.

I need to use some more complicated AS3 codes like the ones shown below for enabling the users to click and drag the movie clips on the stage but are these AS3 codes supported when the Adobe Animate HTML5 Canvas document is exported to HTML5 Canvas format?

This topic has been closed for replies.
Correct answer ClayUUID

You seem to be looking at sources that are years out of date. It's not called Toolkit for CreateJS anymore, it's just HTML5 Canvas. You don't have to put the JS code inside comment blocks anymore.

But most importantly, no, Canvas documents will absolutely not run straight AS3 code. Everything must be rewritten. Even something as simple gotoAndStop(1); must be changed to this.gotoAndStop(0);

This Adobe page provides an overview of the basic differences:

Convert your ActionScript code to HTML5

1 reply

ClayUUIDCorrect answer
Legend
January 28, 2018

You seem to be looking at sources that are years out of date. It's not called Toolkit for CreateJS anymore, it's just HTML5 Canvas. You don't have to put the JS code inside comment blocks anymore.

But most importantly, no, Canvas documents will absolutely not run straight AS3 code. Everything must be rewritten. Even something as simple gotoAndStop(1); must be changed to this.gotoAndStop(0);

This Adobe page provides an overview of the basic differences:

Convert your ActionScript code to HTML5