Ryan Welcher Web Developer613 804-5165
me@ryanwelcher.com

Action Script
getDefinitionByName
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 [...]

Weak Listeners

Garbage collection can be a big deal when writing complex programs in Actionscript. Not removing EventListeners is probably one of the biggest sources of AS holding onto memory it doesn’t need. There is a very easy way to allow GC to handle your event listener clean-up for you when creating a new event listener – [...]

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 [...]

Compiler Error 1203

I ran into this one last night while working on the new site for RockfordGrill.com. I have to admit this one stumped me and I had to do a whole bunch of digging around to figure it out. Once I discovered the issue, it made perfect sense but at the time (about 1:30am) I was [...]

Runtime Error 2048

This is one that has nailed me a couple of times. It is a Sandbox Security violation error which means that one of your SWF’s tried to access a file from a different url – which is a big no-no in flash.

Compiler Error 1180

1180: Call to a possibly undefined method assignListeners.

Compiler Error 1046

1046: Type was not found or was not a compile-time constant: URLRequest;

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 [...]

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

Syntax

So the first thing you may have noticed is that everything in AS2 that had an underscore in front of it no longer does in AS3. That is a MAJOR issues for all of us lazy coders that just want to copy and paste old AS 2 code into an AS3 document – it will [...]

Buttons and Events

If you’re like me you probably never used Event Listeners in AS2. Not unless you needed to do something “crazy” (insert sarcasm here at how amateur I was then, I’m only slightly less amateur now but that’s besides the point) Well AS3 is all about Event Listeners, well Events actually. Actionscript is an Event based [...]

Keep your hand where I can see it.

Using the Hand Cursor on a button In AS2 we took for granted that when we assigned a mouse event (onRelease, onPress, onRollOut etc) to a movie clip Flash by default would change the cursor from the arrow to the hand when the user interacted with that movie clip. In AS3 that is no longer [...]