Introducing Gordon: the Flash Player Written in JavaScript

Share this article

Gordon - the Flash JavaScript player
JavaScript has been used for a number of unusual projects in the past few years. We’ve had NES emulators, Spectrum emulators, and even Amiga emulators. But a Flash player?… What’s the point of emulating a browser plugin within a browser? It’s not as bizarre as it sounds. There is one very good reason for a JavaScript-based player: the Flash plugin isn’t available on all platforms. Most notably, you can’t run Flash on a iPhone or Apple’s new iPad. “Gordon
” is a cleverly-named project by Tobias Schneider which hopes to rectify the situation. It translates Flash SWF files to Scalable Vector Graphics which are supported on the iPhone. The project runs on most modern browsers with the exception of Internet Explorer (which doesn’t offer native SVG support … yet). Gordon currently supports the SWF 1.0 format and SWF 2.0 is in development. There are several demonstrations available and, although they’re simple, they work well and show the potential. Of course, all this work might be in vain if the real Flash plugin appears on the iPhone. But that seems fairly unlikely — Steve Jobs has little regard for Flash and states that it runs too slowly on the device. It’s also a competitor to the standard iPhone/iPad applications platform. However, Gordon has been tested on the iPhone and it runs fast enough even though it’s built on interpreted JavaScript code. If the project becomes a success, the human centipede rapidshare
, there will be nothing Apple can do to prevent Flash running on the device. Could that provide developers with another reason to desert iPhone applications? Have you tried Gordon? Could it ever be a viable alternative to the Flash plugin on unsupported browsers? Should Adobe hire the developer immediately?!

Frequently Asked Questions (FAQs) about JavaScript and Flash Player

What is the relationship between JavaScript and Flash Player?

JavaScript and Flash Player are both technologies used to create interactive content on the web. However, they are fundamentally different. JavaScript is a programming language that is built into all modern web browsers, allowing developers to create dynamic content directly within the browser. Flash Player, on the other hand, is a software that needs to be installed separately and allows the playback of multimedia content created using the Adobe Flash platform.

Why is Flash Player being phased out?

Flash Player is being phased out due to several reasons. Firstly, it has been plagued by security issues, making it a target for hackers. Secondly, it is not supported on mobile devices, which are increasingly becoming the primary means of accessing the internet. Lastly, open standards like HTML5, CSS3, and JavaScript have matured to the point where they can deliver the same functionality as Flash, but in a more secure and efficient manner.

How can I convert Flash content to HTML5?

Converting Flash content to HTML5 can be a complex process, depending on the complexity of the content. There are tools available, such as Google’s Swiffy, that can automate some of the process. However, for more complex content, it may be necessary to manually rewrite the content using HTML5, CSS3, and JavaScript.

Can I still use Flash Player in my browser?

As of December 31, 2020, Adobe has officially stopped supporting Flash Player. Most modern browsers have also removed support for Flash. Therefore, while it may still be technically possible to use Flash Player in some cases, it is strongly discouraged due to the security risks involved.

What are the alternatives to Flash Player for playing multimedia content?

The most common alternative to Flash Player for playing multimedia content is HTML5. HTML5 is a web standard that is supported by all modern browsers and does not require any additional software to be installed. Other alternatives include WebGL for 3D graphics and WebAudio for audio processing.

How can I learn JavaScript?

There are many resources available for learning JavaScript. Online tutorials, video courses, and coding bootcamps can all provide a good foundation in JavaScript. It’s also a good idea to practice by building your own projects and experimenting with different aspects of the language.

Can I use JavaScript to create interactive content?

Yes, JavaScript is a powerful tool for creating interactive content. It can be used to manipulate HTML and CSS, respond to user input, fetch data from servers, and much more. With the right libraries and frameworks, you can even use JavaScript to create complex interactive applications.

What is the future of JavaScript?

JavaScript is constantly evolving, with new features and improvements being added regularly. It is also being used in increasingly diverse contexts, from server-side programming with Node.js to mobile app development with React Native. Therefore, the future of JavaScript looks bright, and it is likely to remain a key technology in web development for the foreseeable future.

How can I ensure my JavaScript code is secure?

There are several best practices for ensuring your JavaScript code is secure. These include using strict mode, avoiding the use of eval(), validating user input, and keeping up to date with the latest security vulnerabilities and patches.

What is the role of JavaScript in the transition from Flash?

JavaScript plays a crucial role in the transition from Flash. It is one of the key technologies that has made it possible to create the same kind of interactive, multimedia content that was once the domain of Flash, but directly within the browser and without the need for any additional software. As such, JavaScript is a key part of the future of web development as we move away from Flash.

Craig BucklerCraig Buckler
View Author

Craig is a freelance UK web consultant who built his first page for IE2.0 in 1995. Since that time he's been advocating standards, accessibility, and best-practice HTML5 techniques. He's created enterprise specifications, websites and online applications for companies and organisations including the UK Parliament, the European Parliament, the Department of Energy & Climate Change, Microsoft, and more. He's written more than 1,000 articles for SitePoint and you can find him @craigbuckler.

Share this article
Read Next
Get the freshest news and resources for developers, designers and digital creators in your inbox each week