Tagged as “as3”
Sep 03, 2009

Quick Tip: Override toString();

Sometimes when making custom classes a trace of an object just isn't enough information. For instance, if I had a custom person class, a trace would probably look something like [Object Person]. A quick and easy solution is to override the objects toString() method to provide a more detailed explanation. As with all good things though, use it in moderation. There is no need for each class to spill it's guts in a simple trace. Sometimes a movieclip should just be a movieclip.

Aug 07, 2009

Supershapes - Coder Challenge

Charlie discovered the idea of the super formula. Since it sounded super, Charlie proposed a challenge, a coder challenge, a super coder challenge. The challenge was straightforward – create a super formula editor that creates a super shape. The other parameters being that the shape must spin in 3D (well at least look like it), the shape must be composed of at least 10,000 particles, the shape must be editable and it must be made in Flash. The winner determined by the fastest FPS, as judged by Mr Doobs stats class.