Starting to learn Actionscript 3.0
December 14th, 2007
Yep, due to occupational necessity, I am starting to learn Actionscript 3.0 and Flash. So what do I make, why a particle system of course!
This SWF has a particle system class capable of 3D sprays of colored balls, including completely configurable 3D gravity, size, speed, emitter angle, alpha, color and a few others I am sure I forgot.
Actionscript 3.0 is no ruby, but I am still enjoying myself.
Although since I can’t override operators like I can in ruby, in order to add 2 vectors together (or mltiply/divide/subtract) my Vector class has to do this:
var vector3:Vector = vector1.add(vector2); |
Instead of the hot and sexy ruby possibility of:
vector3 = vector1 + vector2 |
At least I can use Textmate to write the *.as files.
December 14th, 2007 at 03:52 PM
I learned actionscript long before I started playing with ruby, and at the time i didnt appreciate the dynamic nature of the language.
Now i long for ruby syntax in all my flex applications. Operator overloading would be chief. I keep hoping that now that Tamarin is OS someone will build a ruby compiler for flash. That would be wicked slick.
January 16th, 2008 at 01:01 PM
Hello. A while ago when adobe AIR was coming out and FLEX 2 seemed to be getting rave reviews, i saw a few tutorials and tried to give it a go. The problem is, coming from a PHP background where tutorials / examples are massivley abundant, when i tried to get into flex, i found learning things too slow and painful.
I look forward to seeing your particle system, unfortunatly the .swf doesn’t work, the ‘Click me’ doesn’t do nothing and get no pointer ? Vista, FF, flash player (All latest versions at time of writing)