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?

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 fire all sorts of errors such as this one:

Warning: 1058: Migration issue: The property _x is no longer supported.  Use the DisplayObject.x property instead.

(more…)

Continue ReadingSyntax

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 language. When something happens it dispatches an Event of some form and you have to react to it to make things go.

Wiring up buttons is a great way to introduce the concept of listening for and responding to events and has the upside of being THE MOST BASIC THING YOU EVER HAVE TO DO when building a website or anything that requires users to interact with an interface. So lets get started because we have clients waiting.

(more…)

Continue ReadingButtons and Events