Throwing some boxes around

23rd April, 2011

This was on my to-do list for quite some time… now I can scratch it of the list!

I’ve been willing to share source code of “real world” projects where I’ve been involved for ages! Not that I see my work as something über-awesome or anything for that matter… But the same way I’ve been lost in code and ended up finding “The” solution in a post from some random mate on the other side of the globe, so can someone find this post — and future ones — as a resource of great value. And, as a bonus, leave work on time. :)

Sharing is a good thing. Really!

We, (Web / Flash / Interactive / Multimedia) Developers, live in a not-so-big community where rookies, juniors, seniors, gurus, veterans, ninjas and any-other-fancy-title-out-there need to work together to evolve our skills both personal and group-wise. And with working together I don’t mean geographically, but really as a whole cohesive community where we not only take from, but also give back in the same proportion.

With this in mind, and fueled by Nuno Ribeiro‘s talk at 2010 edition of FlashCamp Portugal — where he referred the must-read post of Marco NevesPorque partilhar???“ (Why share??? by Google Translate) —, I’ve decided to create an online repository for sharing code at GitHub.

The project and its source code.

So, today was “The Day” and I finally published the first source code of a “real world” project I’ve worked on this year.
It’s a simple 3D scene with draggable cubes take cast shadows on the ground. A striped down version of the scene used in the website oonique candles for oon solutions.

It’s coded in Actionscript 3.0 using Papervision3D + JigLibFlash 3D physics library + Andy Zupko’s ShadowCaster + TweenLite for camera transitions and the help of loads of posts in blogs and forums all over the internet to overcome some problems I’ve faced during development.

As you can now infer, such a simple thing and — yet! — hundreds of people were involved so I could build up this one.

There aren’t much comments throughout the source code, but I’m always around if you need some help understanding something in it. Drop me an e-mail and I’ll write back.

The source code is available for download here:

And a working demo is available here:

Go get your hands dirty and feel free to use it as you see fit.
This goes without saying, but any credits will be much appreciated.

Now… I have to get back to work.
And thanks for reading till the end! :)