Archive for the 'Basics' Category

Aug 13 2008

Clarification for “First Class Ever”

Published by admin under Basics, Flash AS3

It was brought to my attention that some people would like to access not only the features of the stage (addChild(), eventListeners, etc) but also the DisplayObjects that reside there. If you played around with the files provided in the original post and tried to do something like this:

private function checkText(evt:Event):void {
if (_stage.myInput.text == "test text") {
_stage.addChild(customText);
dispatchEvent( new Event(correctText) );
}
} Continue Reading »

Popularity: unranked [?]

No responses yet

Apr 29 2008

Tutorial: Event Listeners in Flash AS3 explained

Published by admin under Basics, Flash AS3

Why should I care about Event Listeners?

If your ambitions in Flash AS3 extend beyond that of basic animation you will NEED to care about Event Listeners because the flow of your entire project will depend on them. They are the ignition to your movies. They allow you to respond to input from users (whether it be the mouse or the keyboard or any other form) and take action with that input. In short, Event Listeners are part of the life-blood of Flash programming.

Continue Reading »

Popularity: 100% [?]

8 responses so far

Apr 10 2008

Write your first class ever in Flash AS3 with access to the stage and event dispatching

Published by admin under Basics, Flash AS3

The switch for many users from Actionscript 2 (AS2) to Actionscript 3 (AS3) can be a difficult one mainly because of AS3’s preference for an Object Oriented (OOP) style of programming. Once users realize this they are often thrown head first into the realm of class creation in flash with really no idea how to make this “class” interact with their timelines. The hope is that by the end of this article one will have a basic understanding of how to create, design, and implement a class.

Before we get started, here is the example code you can use to follow along. Continue Reading »

Popularity: 45% [?]

10 responses so far