Tag: as3


Ipoint interface | ActionScript 3.0 AS3

It amazes me that ActionScript (AS3) does not have interfaces listed for all its classes. Often you want to create a class that inherits from something like MovieClip and MovieClip inherits all the way down a long list of classes. So you are left with ...

How to recursively traverse an XML object in AS3

I found lots of examples on how to recusively parse through an XML object using E4X in ActionScript 3 (AS3). None of these examples were very simple or to the point. Most relied on the specifics of the XML instead of making general code that could acce...

How to get today's date in ActionScript 3 (AS3)

The Date() constructor takes up to seven parameters (year, month, ..., millisecond) to specify a date and time to the millisecond. The date that the newly constructed Date object contains depends on the number, and data type, of arguments passed. If...

AS3 design pattern | Organize packages for a multi SWF project

Design Pattern - How to organize packages for decoupling externally loaded SWFs.Here is a design pattern that will show you how the hierarchy should work when building a complicated program that loads in multiple external SWFs. There is a root to the p...

Decouple Externally Loaded SWFs in AS3

How to decouple externally loaded movieClips from their loader in Actionscript 3 (AS3) Here is a common problem: TypeError: Error #1034: Type Coercion failed: cannot convert com.yourUrl.mainClass.SomeClass@48cb821 to com.yourUrl.mainClass.SomeClass at ...

Tree menu with ActionScript AS3

##An Example of How to Customize a Tree Component## I came across some open source code developed by Yahoo! called the Yahoo Atra components. VERY HARD TO CUSTOMIZE! I found the documentation to be particularly inadequate for the degree that I wanted t...

Code for a resizable window in AS3

Flex handles window resizing really well so there is little need anymore to program your own custom window code. But for those of you who want a manually resizable window without loading some massive amount of flex code just to get resizable window cod...

Porting _global in ActionScript from AS2 to AS3

Global variables The _global variable has been removed in ActionScript 3.0, it is suggested that you use specific objects that are created in the global scope to store your data instead of globing unrelated bits and pieces under one global object. Howe...