getDefinitionByName

I have been creating a code base for a Screen Manager system that I am using for an iOS app I am building in AS3. I wanted to create a dynamic way to reference and instantiate classes that represent each of the Screens in the app so I can reuse this for other applications in the future and to make it a lot less code intensive.

I setup a series of static variables that held string names to represent each of the Screens in the application. Then when I want to create the screen and add it to the stage I use the getDefinitionByName() method and pass the string name of the class. (more…)

Continue ReadinggetDefinitionByName

Castfire AS3 Library

I have been developing an AS3 library for the video publishing company Castfire on my own for the past little while and recently got in touch with them about continuing the endeavor. I thought it was a shot in the dark but they were more than willing to help out and so here is the first of, I hope, many articles on the Castfire API and the class library I am working with them to create for it.

The point of this library is to allow Flash devs like myself to easily access the Castfire API when creating custom video players.

(more…)

Continue ReadingCastfire AS3 Library

Getter ready, get Setter, Go!

I am loving the stupid names I’ve been using for these posts. Pretty soon you’ll have no idea what I am talking about.

In my last post, I showed you have to create a new class and the topic of access modifiers was mentioned. I would like to expand on that topic and use it to introduce a new one for class creation.

(more…)

Continue ReadingGetter ready, get Setter, Go!

Going Somewhere?

Opening a URL in Action Script 3

Navigating to a URL in AS 2 was pretty straight forward.

getURL(“http://www.ryanwelcher.com”);

As with most things in AS3 that has changed a fair amount. It is no longer one line of code. I’ll show you everything and then walk you through it (more…)

Continue ReadingGoing Somewhere?