Showcase and discover digital art at yex

Follow Design Stacks

Subscribe to our free newsletter to get all our latest tutorials and articles delivered directly to your inbox!

Building an image-viewing widget with ActionScript 3.0

Building an image-viewing widget with ActionScript 3.0

Along with the launch of Macromedia Flash MX 2004 back in 2003 came ActionScript 2.0, the first version of the Flash programming language to support a true object-oriented programming syntax. ActionScript 2.0 marked a great step forward for Flash programming, but it still lacked some of the functionality that programmers familiar with Java, C++, and other object-oriented languages would expect. All this is about to change with ActionScript 3.0, which represents a turbo-charged upgrade to the core language as well as a no-holds-barred overhaul of the Flash Player API.

Years in the making, ActionScript 3.0 presents perhaps the most substantial upgrade to the Flash programming language ever. The enhancements to the performance, feature set, ease of use, cleanliness, and sophistication of ActionScript are simply staggering. In this article, I present four versions of a simple image-viewing widget used to load, display, crop, and add a border around an image.


To make the most of this article, you need to install the following software and files:

Flex Builder 2 (SDK Included)

Free Flex 2 SDK (Included with Flex Builder 2)

Sample files:

Prerequisite knowledge:

Familiarity with ActionScript 2.0 and object-oriented programming.