Archive for May, 2011

Tutorial: Socket server with Flash and Node.js

Sunday, May 22nd, 2011

Programming with sockets seems to be an intimidating venture for many developers. However, with AS 3 and Node.js, it really isn’t too difficult. In this tutorial you will set up a simple socket server using Node.js and connect to it with a Flash-based client. When the project is complete, you’ll be able to see data being transmitted from Flash to the server and back to Flash again - Booyah!
(more...)

ActionScript 3.0: Screaming fast for loops

Saturday, May 14th, 2011

In the last post, I wrote about what I think is a better structure for while loops. Today, it’s all about for loops and demonstrating how the little things can go a long way in improving loop performance in your applications. (more...)

ActionScript 3.0: A better while loop

Wednesday, May 11th, 2011

The while loop is one of the basic looping structures in any programming language. It performs admirably, but how many times have you been bitten because you forgot to increment your counter? Chances are it's happened more than once; it's ok, it happens to all of us...but not anymore. (more...)

Basics of jumping with ActionScript 3.0

Tuesday, May 3rd, 2011

When it comes to creating games with Flash, one problem seems to come up a lot: jumping. Giving the player the ability to jump can greatly enhance gameplay, but it does present its own set of challenges. How do you get the action to feel natural? How do you prevent the player from jumping again once they’re already in the air? How do you determine when the character has hit the ground? All of these are valid questions and I thought I’d share the way I handle jumping in games. Note that sample files are provided as well. (more...)

Subscribe to RSS feed FGS5 Badge