Archive | ActionScript 3.0 Tutorial RSS feed for this section

A must-read for learning ActionScript 3.0

1 Oct

I just stumbled across a great article by Josh Tynjala on the Yahoo! Flash Developer Center. Josh writes about the new features of ActionScript 3.0, focusing on working with the Display List, changes to root and parent, and encapsulation. I’m sure this article has been around for some time, but if you are just getting [...]

Loading and Saving External XML Data in AIR (Apollo)

3 Jul

I just finished an AIR (Apollo) application that loads and saves data from an external XML file. I figured I would share the code to accomplish this task as there is not a lot of Apollo info around at this time. First off lets start with loading an XML file and reading its contents. I [...]

Building a Basic Menu in ActionScript 3.0 Tutorial – Part 2 – XML

19 Sep

A few posts ago, I showed you how to build a basic menu using an Array of button names. Now, I will demonstrate how to build the same menu, but this time use the new XML class which is based on E4X. There are many benefits of using XML in your applications. The main reason [...]

Building a Basic Menu in ActionScript 3.0 Tutorial – Part 1 – Array

7 Sep

Today I have decided to build a simple ActionScript 3.0 horizontal menu based on an array. This is a fairly common practice in Flash development as we are often using data provided from a XML file to dynamically update content within our movies. To simplify this tutorial I am going to use an array that [...]

SimpleButton and Events in ActionScript 3.0 Tutorial

2 Aug

In AS3, one of the most significant changes was to make the EventDispatch class the standard tool for calling events. This is a huge step in ActionScript as code written by different developers will become a lot more similar. In the following example I will demonstrate how to use addEventListener to add a click event [...]