Category Archives: Flash / Actionscript 3.0

Note : All code present in this section is licensed under a GNU Lesser General Public License where applicable, meaning you're free to use it for personal and commercial purposes as well as modify it to your heart's content. Have fun!

Simple 2D path-finding class for Actionscript

pathfinding_thumb

Lately, I found a very simple and to-the-point class to implement the A Star pathfinding algorithm in Flash Actionscript 3, and I felt compelled to “improve” it a bit, if it’s worth the qualificative ;) All you have to do … Continue reading

Posted in Flash / Actionscript 3.0, Scripts And Tutos | Leave a comment

Box2d simplified: the PhysicObject class

buggy_thumb

I recently picked up the Box2d physic simulation engine for Flash and quickly realized that you couldn’t just get it up and running like that. Just creating a single body might takes a whole handful of lines to work at … Continue reading

Posted in Flash / Actionscript 3.0, Scripts And Tutos | Leave a comment

Dynamically changing the speed of an audio stream

Actionscript 3 Icon

When I made the code engine for Freegear, I wanted the car to sound like a real car; the sound of the engine speeding up smoothly as it was throttling up. I tried making it play audio samples of engine … Continue reading

Posted in Flash / Actionscript 3.0, Scripts And Tutos | Leave a comment

Parsing arrays

Actionscript 3 Icon

Despite Flash’s great portability, problems quickly arise when you have to store data for the levels of your game. Most portals won’t allow other files to be published along your game, so keeping the levels data in external files is … Continue reading

Posted in Flash / Actionscript 3.0, Scripts And Tutos | Leave a comment

Referenced event listeners

Actionscript 3 Icon

A lot of improvements have been made in Actionscript 3, but they seem to have neglected event listeners a bit. More specifically, the ability to remove all listeners from a MovieClip even if you don’t know exactly what functions or … Continue reading

Posted in Flash / Actionscript 3.0, Scripts And Tutos | 2 Comments