Move over HTML5… Flash is here to stay!
There has been a lot of controversy pertaining to the pros and cons of HTML5 compared to Adobe Flash. Even though the topic has been thoroughly discussed and analysed, I wish to add my voice to the dialogue.
At this point in time, my opinion is that HTML5 will not replace Flash. Even though some major players like Google and Facebook have jumped on the HTML5 wagon and have deprecated Flash APIs, I still think Flash is here to stay.
Without trying to “beat a dead horse” I’ll compare both to prove my point.
HTML5 has a
element and you can create play, stop buttons using the
At this time, HTML5 does not have a standard video format because just as you have a wide variety of browsers different organizations have employed formats that suite their needs. With Flash however there’s backward compatibility, only new features may not be available on outdated Flash player plugins.
stalled etc.The W3C HTML5 Video Editor’s Draft has a comprehensive listing.
Flash with Actionscript 3.0 gives you the ability to create interactive video using cue points and various Event objects. Actionscript 3.0 includes classes such as
VideoState which give you granular control over the embeded video. The VideoEvent class has over 20 properties such as
SCRUB_START etc. Furthermore Flash also gives the option of various transition styles and wipes that you cannot achieve with HTML5 video.
The HTML5 canvas element allows developers to create bitmap graphics using scripts. It is similar to the drawing API in Flash using the
The HTML5 audio tag makes it easy to embed sound files directly into an HTML page. However at this time only file formats (.mp3, .ogg) are supported by most modern browsers. Event handlers include
onreadystatechange and so on. You can find a more comprehensive list of event handlers on-line. As expected Flash has similar event handlers plus a lot more. There’s the
Sound class that creates the
Sound object and
SoundChannel that allows you play or stop different sounds simultaneously and allows you to control the right or left audio channel. You also have a
SoundMixer class that gives global control over all the sounds in the swf file. So once again Flash turns out to be way ahead of HTML5, not only in terms of browser support, since very few browsers currently support the audio tag, but also in terms of functionality and features.
The media tags mentioned above are only a fraction of what Flash has to offer. Using PHP for backend database access gives Flash a huge advantage. You also have various filters that can be applied to Bitmap graphics.
Certainly HTML5 is a probable substitute for Flash, Adobe recently announced that it will no longer support Flash for mobile platforms, instead they will promote HTML5, Flex and Adobe Air. Certainly Flash no longer has the monopoly of web based animation and multimedia, however at this time it still offers a better set of tools than HTML5. Only time will tell which one will win. It’s quite interesting to watch how things work out.