Skip to main content
charlesn79540358
Inspiring
November 17, 2017
Answered

HTML5/Canvas

  • November 17, 2017
  • 1 reply
  • 341 views

I don't if this is a right way to do it or not but we have .swf diagram and I open it up in adobe animate and convert the project to a HTML5/Canvas does it convert it to some type of image? I have found an outside javascript zoom in and out feature that i want to add to this but I don't know too.

Thank you,

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

    All of the timeline structure, and buttons, movieclips, graphics, sounds, get converted across (which some restrictions, such as certain filter effects not working). Any ActionScript gets commented out, you would look at the code in the timeline and recreate the same functions using JavaScript, and the CreateJS library.

    If you have an existing AS3 function that zooms a picture, you could show us that, and we can tell you the syntax for a JavaScript version. If you have zoom code already, much of it might work right away in the timeline of the Canvas version of the FLA.

    1 reply

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    November 17, 2017

    All of the timeline structure, and buttons, movieclips, graphics, sounds, get converted across (which some restrictions, such as certain filter effects not working). Any ActionScript gets commented out, you would look at the code in the timeline and recreate the same functions using JavaScript, and the CreateJS library.

    If you have an existing AS3 function that zooms a picture, you could show us that, and we can tell you the syntax for a JavaScript version. If you have zoom code already, much of it might work right away in the timeline of the Canvas version of the FLA.

    charlesn79540358
    Inspiring
    November 17, 2017

    The best way to add the function is open that createdjs.js in dreamweaver or some other editor? or can you do it through animate?

    Hopefully this make sense.

    Thank you,