Dec
8
EventManager Example

Going to keep this short for now but I wanted to upload some example files for the EventManager to help anyone having trouble understanding it or getting it working.  I’ll post more soon about any specific questions people have but for now I’ve got to run and earn my rent money. Read the rest of this entry »

filed under: ActionScript, Misc, Scripts, Tutorials | comments (3) | read more...

Nov
15
Sine and Cosine lookup tables

Sometimes speed is essential.  So recently for one of my projects that called Math.sin and Math.cos 1000 each every frame, I decided to create a lookup table.  Now that I’ve finally had some time too, I got a chance to test what I though was a clear speed difference and I found some very surprising results.

Read the rest of this entry »

filed under: ActionScript, Interesting stuff, Math, Misc, Scripts | comments (2) | read more...

Nov
9
LibraryManager – centalized library asset management

Ever find that you have about 4350823498 different MovieClips in your library that you would like to ‘attach’ ? Yeah yeah it’s not attach in AS3 but you know what I mean! Anyways this was inspired by a code snippet I first read on Blitz Agency’s blog but have seen in many shapes and form since. So here’s my version of using getDefinitionByName with string constants to help centralize things.

Read the rest of this entry »

filed under: ActionScript, Scripts | comments (0) | read more...

Nov
9
Typed Arrays

Nothing special here but if you want to have a look at one way of making an Array a specific type have a look at my take on it if you like.

Read the rest of this entry »

filed under: ActionScript, Scripts | comments (0) | read more...

© 2012 pajamacode | Theme by DemusDesign, Theme Lab, and Search Optimization | Powered by WordPress