THE PASZ.COM BLOG

Tuesday, August 02, 2005

Flash 8 Gradient Wheel Demo and Code

I've posted another Flash 8 demo, building on my experiments from yesterday.

I set out to do something that would be pretty difficult to do using using simple MovieClips. Basically, I use the matrix drawing technique described yesterday to create a gradient wheel. Then I use a simple onEnterFrame rotation to animate the wheel. Note that the frame rate is a lot better because I'm not redrawing the clip every frame.

View the demo
View the source

If you want to compile this yourself, it should be pretty easy using the FAME setup I described. However, you'll need to grab the Delegate Class from Dynamic Flash, and include it in your MTASC std directory.

It should be fairly easy to modify the code and come up with various other effects. (If you do, let me know.)

I also should mention that I've made a few updates to my Flash 8 Docs, including some descriptions for the Matrix Class. I'm thinking of writing a full tutorial about using Matrices, but I'm still getting my head around a few things. Stay tuned.

16 Comments: