How to use transpiled ActionScript with HTML

by Josh Tynjala

HTML graphic

With Apache FlexJS, we can build web apps and pages using ActionScript... no plugin required! HTML is the basic building block of the web, so it's important to understand how ActionScript can create it, modify it, and enhance it.

Let's learn how to combine transpiled ActionScript and HTML by building a simple HTML widget. It will be a loan payment calculator that takes some input values and calculates a result. We're going to build it three different ways, and in the process, we'll learn how well ActionScript can integrate with HTML in a web browser.

Requirements

For this tutorial, you should install Apache FlexJS 0.6 or newer. Use the Apache Flex SDK Installer to download it.