Upgrade Your Account!

Hey! To start this decade right, we believe Newgrounds should be ad-free for EVERYONE. For this to work, we need people who have the means to become paying supporters. For just $3 per month or $25 for the year, you can help this happen and get some nice perks!

For the month of February we have disabled ads on all E-M content. We need 201 people to reach our goal of 3,100 active supporters. If we hit that, we'll continue with a new goal in March!

Please check out our Supporter Upgrade and consider coming aboard!

AS3 Tut: Data Structures

Share Collapse

Author Comments

I wrote up this tutorial to help beginning to intermediate flash programmers learn how to use data structures. Sounds amazingly boring and nerdy, but if you want to have manageable and, more importantly, working games and whatnot, you're gonna need them.

If you have any questions, feel free to post them in the comments. I will read and try to respond to every comment made, unless I get a flood.

Also, sorry to the audio artists who's awesome songs got butchered by Flash's compression software.


Log in / sign up to vote & review!

Newgrounds accounts are free and registered users see fewer ads!


Thanks for using my music!

Mind-Blight responds:

For sure! It's a sick track.

An excellent primer for non-programmer developers.

Newgrounds needed something like this years ago! AS3 is much more focused on traditional programming than AS2. Now Mind-Blight presents some very common design patterns every programmer should have in his toolbox. Bonus points for using animation to illustrate some very abstract functionality that usually languishes behind the scenes.

If your game lags, I'm not 100% sure these objects and methods will solve the problem, but they're definitely faster than a typical Flash Array. I'd love to see some examples of use cases (simulating a deck of cards comes to mind for FILO, for example,) or examples of step-through, sort, and search methods which could make these objects as versatile as standard arrays.

Oh well, maybe in part 2! For now, this should be required reading for anyone who uses AS3! Keep up the good work, Mind-Blight!

Mind-Blight responds:

Thanks a bunch!

I'm thinking of creating a second which focuses on OOP philosophy and AS3 in general. I've been browsing the forums, and a lot of people seem to be scared of AS3 because of its more rigorous adherence to OOP styles.

Excellent, accurate

going to the tutorial section.

Mind-Blight responds:


I hope so.

If your so amazing at programming...

How come the music runs together if you play the other.

Mind-Blight responds:

Because you and I are running different versions of the Flash environment. It works perfectly for me and other people I had test it. In other words, update flash.

I currently work at the University of Oregon programming software for research on helping patients with brain damage. My main mediums are Flash and Javascript/CSS/HTML. Both Javascript and Actionscript are derivations of the same core language: EMAScript 3. Plus, I have a degree in Computer Science. And Mathematics. To break it down for you: I've got a pretty good idea of what I'm talking about.