Search code examples
javascripthtmlactionscript-3flash

How to do an AS3 to HTML5 conversion with external AS files


I have a rather large and complicated Flash project that I've been tasked with converting to html5 and javaScript. The main issue I am encountering (aside from the myriad of unsupported features) is that it is heavily reliant on external .as files and I am not sure how to approach it. Everything I have found suggests manually re-scripting in javaScript but I do not have the time or budget for that and of course I am looking for an easier and softer way to get this done.

When I "Convert to HTML5 from AS3 document formats" in Flash CC are the external .as files converted and compiles as well? I cant tell as I am a total noob and wandering through this nearly blind with ignorance.

Thanks in advance for the help and guidance


Solution

  • I'm no expert in this (because I don't use the feature), but from my understanding:

    The convert to HTML5/Canvas/WebGL is not for code-oriented projects, but is designed for timeline projects.

    Sadly (as is the case for most development), there isn't going to be some magic bullet tool that will sprinkle pixie dust on your project and make it exactly the same but HTML5/JS

    The convert tool is great for moving your display assets from Flash to Canvas, but you'll need to rewrite at least some of the code most likely.

    CreateJS is a good JS Canvas library that mimics much of the display logic in Flash/AS3. (it's what flash actually uses when you output HTML5 I believe). Manually converting AS3 to JS isn't actually that difficult as they are both ECMAScript based.