Some Random Dude is a blog by P.J. Onori that covers design & technology in the broadest sense possible.

Animating Gradient Actionscript 3 Experiment

Posted on 27 March, 2007 at 7:03am

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.

You need the Flash Player to view this video.

The animation is a continual tween from one gradient to another – I find it very addictive to watch. Big thanks to David Nelson for the basic color tweening logic. After coding this up AS3 within Flash 9, I decided to finish it up with Flex 2 as I had never really given the app a fair shot. After a few minutes of tutelage from a colleague of mine, I wish I would have taken the plunge a long time ago. The whole process in Flex was so much more integrated and helpful. It really made the coding process fun tolerable. Kudos to Macromedia/Adobe putting out such a great product.

Download the Flex Project

Like what you just saw? Why not subscribe to Some Random Dude?

The Discussion

9 Comments on “Animating Gradient Actionscript 3 Experiment”
  • nice!

  • I am already confused. But very beautiful.

  • Thanks for the comments guys – very appreciated. :)

  • Simple, but nice to watch :)

  • i still don´t how did u do it.
    can u explain me how, please

    i canñy download the flex project

    thanx!

  • Thanks! this was useful!

  • That’s very nice, I am trying to do something similar in Flash(as3), but with changing alpha channel, any ides?

  • [...] Read more [...]

  • can’t download the flex project