00:00
00:00
Newgrounds Background Image Theme

Chan99 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

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.

Enjoy!

Log in / sign up to vote & review!

Thanks

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:

Thanks!

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.

Credits & Info

Views
6,370
Faves:
3
Votes
6
Score
2.70 / 5.00

Uploaded
Aug 8, 2010
11:43 PM EDT
Genre
Tutorial