Archive for May, 2011
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...)
Tags: 3.0, Action, ActionScript, Flash, js, Node, Node.js, Script, server, socket, XMLSocket
Posted in ActionScript 3, Tutorials | 9 Comments »
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...)
Tags: 3, 3.0, Action, Flash, for, loops, optimization, optimize, optimized, Script
Posted in ActionScript 3, Tricks, Tutorials | No Comments »
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...)
Tags: 3, 3.0, Action, ActionScript, Flash, infinite, loop, loops, optimizing, Script, while
Posted in ActionScript 3, Tricks | 4 Comments »
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...)
Tags: 3, ActionScript, Flash, games, Gaming, jump, jumping, video
Posted in ActionScript 3, Gaming, Tutorials | 7 Comments »