Posts Tagged ‘code’

A Preview of 3d Layout Organizers

A while back, I published some work on AS3 layout organizers. The basic premise was to use virtual “containers” of a collection of DisplayObjects to create special layouts, such as a grid or ellipse. The project turned out to be quite enjoyable and I have used this library for almost every project I have worked on since I wrote it. With Flash 10’s introduction of 3d, it seemed appropriate to branch out these organizers into their 3d counterparts. In addition, I have spent a considerable amount of time re-writing a large portion of the core code to make it easier to use and more efficient. I was hoping to release the code in this post as well, but it just is not quite there yet. So, consider this a preview of the revamped library. Read the rest of this post…


Processing Motion Experiment - Wandering Blossoms

Processing Experiment Wandering BlossomsI truly am loving how I can take a piece of code and begin to have it exist in various mediums. This experiment was actually posted to my Vimeo account quite a while ago, but I wanted to output this project as a vector piece as well. I actually think my previous project would be ended up as a good candidate for vector output as well - I may go back and add that at a later time. This project was just another test on playing with motion preceding my knowledge of the noise() method. Looking back, a similar look in motion could have been achieved with far fewer lines of code. Nonetheless, I think the final result ended up being quite nice.

I hope to continue to have the time to post these projects. I feel as though I am (slowly) getting a grasp on how this whole Processing thing works. My goal is to cross-pollinate any future Processing projects with Flash/Flex projects. I have a few ideas on how that may just happen.

Read the rest of this post…


Animating Gradient Actionscript 3 Experiment

I have been working on a project that requires a gradient background to shift colors dynamically. I usually am not too big of a fan of gradients in general, so I had never spent too much time with them in Flash. After a few minutes of reading through other people’s experiences however, I found it to be quite easy.

Read the rest of this post…


Daily Delicious - Video in Actionscript 3

For nearly the past year of my life, Flash Video has been the main focus of my work. I was fortunate enough to have the opportunity to build the next-generation Flash Video player for Current TV in 2006 and I am currently working on another video player project for another large online media organization. With Actionscript 3.0 becoming a more viable option for development with every passing day (Flash Player 9 is up to about 50% penetration already), I am very interested in how the video model works under the new version of Flash’s programming language. After mucking around in AS3 for a short time, I was surprised at how easy the migration is - luckily, video is no exception.

I read a well done mini-writeup on Actionscript 3 video and I came away very excited at the prospect of using Actionscript 3 from this point forward. The code is leaner, and once and for all we can create a video object exclusively through Actionscript (it is about time).

Also, due to the Actionscript 3 event model (details here), no longer do we need to see this:


netStream.onStatus = function(sObj:NetStatusEvent)	{
	trace("sObj.info.code")
}

This has never been fun due to scoping issues and just an overall bloat to your code.


netStream.addEventListener(NetStatusEvent.NET_STATUS, status);

public function status(sObj:NetStatusEvent):Void	{
	trace(sObj.info.code);
}

With event listeners, it keeps the code much more consolidated with no more scoping problems and nested functions. Beautiful stuff. My next video project will most definitely be in Actionscript 3, my hope is all my future projects will be as well.

del.icio.us link