What to expect when converting Flash to HTML5
We had the pleasure recently of connecting with interactive software engineer Joseph Labrecque to learn more about his thoughts on Animate CC, converting Flash to HTML5 and what type of content should be converted.
What do you do?
I’m involved in a lot of different things. My primary role is that of an interactive software engineer for the University of Denver in Denver, Colorado. I also run a small business called Fractured Vision Media, LLC and have a number of other activities I’m involved with from teaching Animate CC and other Adobe applications for University College to speaking for major events like Adobe MAX. In addition, I’m continually involved in the production of video courses for Lynda.com, Pluralsight, and others – and occasionally author books on Animate CC and related subjects.
Why would someone want to use Animate CC?
Animate CC is in a unique position among creative applications as it is an environment through which an individual can, within a single application, perform both design and development tasks with ease… simultaneously. This means that those individuals who only do design work, or those who are only interested in code, can augment their existing skill-set by exploring the “other side” in a way which is easily accessible to them. I’m a perfect example of this in that I originally approached Animate CC (via Macromedia Flash) as a pure designer with no interest in code whatsoever. Through exploration of the tools available and an interest to expand into areas of interactive media, I was able to learn to program in small steps by relating the aspects I was unfamiliar with (ActionScript) with those I was rather deeply familiar with (design and animation). Today I’m a software engineer in title and position but remain a hybrid creative/interactive in truth.
Most people understand that both HTML5 Canvas and Flash Player content can be created with Animate CC – but some seem to still be confused… thinking that we can only produce content for HTML5 Canvas or only for Flash Player. Animate CC is a true multi-platform content creation tool and what many do not realize is that we are not even limited to the two platforms mentioned previously – but can also produce content such as animated GIF, HD Video, SVG, WebGL content, and more. One set of platforms that is criminally absent from the minds of most casual users are those which can be targeted through Adobe AIR: Windows and macOS for desktop, Android and iOS on mobile, and even Google and Apple TV hardware. Very powerful!
When users are considering converting Flash content to HTML5 what should they consider?
The first thing to consider is the project itself – what sort of content are we dealing with? How old is it? Can the features and qualities of the project be replicated through native web technologies? If it is an animation then we can easily convert internal animated content and assets from one document type to another using Animate CC. We could even copy specific assets or layers from one document to another. Animation is really quite straightforward. What gets tricky is when there is some sort of interactivity involved – especially if there is a lot of ActionScript code. I’m a believer in recognizing the original purpose of a thing and making intentional decisions based upon considerate thought and future projection in light of past experience. Does the project in question, assuming it has some age behind it, fulfill its original purpose – even today? If the answer is “yes” – then we don’t need to really do much of anything. If the answer is “no” – then a decision must be made on whether to convert the project, rewrite it entirely, or kill it outright. If the answer is “yes, but…” then we have to perform some projections based upon all the data – and that is a much more difficult decision because it involves unknowns and a certain amount of intelligent guesswork. When considering older Flash-based content – we find that all of these scenarios are valid.
What type of projects are easy to convert?
Does it make sense to convert legacy Flash content to HTML5?
I do believe in preserving all of the great historical content that exists on the web today as older Flash .swf file content though – it’s hugely important to preserve this material. The preservation can be done in many cases by converting Flash Player content to HTML5 Canvas or even straight to video using Animate CC’s precise video export capabilities. More interactive content will require conversion of the code – while massive games and other complicated projects likely will simply exist as they are to be accessed through Flash Player or some future runtime capable of dealing with such content. Regardless – Flash Player is still supported across desktop browsers and Adobe does update the runtimes regularly with quarterly feature bearing releases… so legacy content will continue to run just fine for the foreseeable future.
When converting Flash to HTML5 should the user expect everything to convert or should they expect to do some clean up of the code?
There do, of course, exist other projects which are not ideal for conversion. For instance, I’ve written a number of incredibly video-centric applications targeting Flash Player which make use of RTMP video streaming protocols and additional APIs that exist on Adobe Media Server or something that relies upon BlazeDS data transfer protocols and methods. Functionality such as this is so reliant upon these other servers and services – and differs so wildly from what is pobble or manageable on alternate platforms that a simple conversion in Animate CC simply won’t cut it. The assets and user interface would convert just fine but we’d have to then explore additional technologies to augment what we are left with after the conversion process. While I’m sure there are many 3rd party libraries and additional servers that exist for performing similar functionality… this scenario would basically include a full-scale rewrite of the project. Luckily – most projects out there are no where near this level of complexity!
No matter what your approach is to existing Flash content – there is always a choice to be made and with the evolution of tools and frameworks at hand today… conversion really is possible at all levels if that is the desired route.