Method chaining without Extension in Actionscript

December 12, 2008

9:48 am

Categories

code, trick

3 Comments

Working with Strings in Actionscript can be difficult sometimes. They are final and not dynamic, so extension options are extremely limited. About the only way to do it is through the prototype object, but I tend to avoid that because of compile errors in Flex Builder. So what’s a code monkey to do?

Continue Reading »

Tutorial: Animating a Wave in Actionscript

August 10, 2008

5:43 pm

Categories

code, tutorial

5 Comments

This is an example of an animating wave.

Math is your friend. Or more specifically, Math is the long forgotten pen pal you wrote furiously in high school, but abandoned for your shiny new buddy: Art. Did you ever wonder what would happen if you arranged a party and allowed the two to meet?

Continue Reading »

Pitfall: RedCloth on Media Temple

July 26, 2008

8:29 am

Categories

code, pitfall

3 Comments

Rails 2.1 introduced gem dependicies in the environment configuration. In my environment.rb file I had the following:

config.gem "RedCloth", :version => ">= 3.301", :source => "http://code.whytheluckystiff.net/"

This was pulled directly off of the Semi-Static Pages Railscast. The problem: no mattter what variation I tried in the previous code, when starting the Media Temple server, it would spew out error messages basically explaining RedCloth could not be found.

Continue Reading »

Red Invasion is here: How I Saved the Frame Rate

July 12, 2008

3:08 pm

Categories

code

1 Comment

Red Invaders\' Boss and a large collection of RED Parts.

Red Invaders is Flash game extension of a print ad promoting Digital FX’s Red Camera and their vast collection of Red accessories. How does this game promote a camera?

Continue Reading »