Tag Archives: Actionscript

3D sound visualization using pv3D and computespectrum

I wrote a relatively simple example of how you can analyze the soundspectrum and then use the output to animate papervision3D objects. I’m not such a fan of ENTER_FRAME  listeners, so you’ll find the code that handles the animation in the tick function of the timer which updates every 100 ms. To get this code [...]

How to make a snake game in flash with Actionscript 3

I’ve written a basic snake game to show you how this can be done in AS3. You can open up flex builder, paste the code in a new actionscript class and run it right away. (Get the class file here). You’ll probably notice that the game doesn’t check for collisions with the snake itself or [...]

Tweening vertices in pv3D

Did you know it is possible to manipulate every single vertex in a 3D object? You can access them through the geometry property. I did a quick test by tweening the vertices of a cube. Click on the cube to see the result. 1 var v:Vertex3D = cube.geometry.vertices[i]; This movie requires Flash Player 9 swfobject.embedSWF(“http://snakeflash.com/demos/CubeVertices.swf”, [...]

AS3 Drawing API + TweenMax

Click on the image to open the SWF in a new window. Then, click and drag to start drawing.