Author Archives: Zevan

Great ActionScript Site

I keep meaning to post a link to this site... really great articles over there.... I highly recommend reading through them...
http://jacksondunstan.com/
After reading Everything's a Function. I remembered another strange thing that I noticed about the ActionScript compiler and auto-formatting.
Auto-formatting in flash is totally broken and can completely ruin your code - so never use it. [...]

Posted in links | Tagged , , , | 10 Comments

Processing Class at FMA

This Sunday I'm doing a free one day workshop in Processing.
Processing is a gateway programming language. It helped me to ease my way into Java, C++ and OpenGL. Without Processing, learning those languages would have been much harder for me. Processing is also an amazing tool for prototyping and doing proof of concept tests.
The [...]

Posted in Uncategorized | 4 Comments

Timebased Animation Idea (FRIM & QuickBox2D)

CLICK HERE TO COPY
Actionscript:

import com.actionsnippet.qbox.*;

 

// change the frame rate and test...

stage.frameRate = 60;

 

[SWF(width = 800, height=600)]

 

var sim:QuickBox2D = new QuickBox2D(this);

 

 

var circle:Shape = Shape(addChild(new Shape()));

with(circle.graphics) beginFill(0), drawCircle(0,0,50);

circle.x = 100, circle.y = 100;

 

 

sim.start();

 

var startTime:Number;

// delay the start a bit

setTimeout(function():void {

  startTime = getTimer();

  sim.addEventListener(QuickBox2D.STEP, onTimeStep);

}, 500);

 

function onTimeStep(evt:Event):void{

   

    circle.x += (600 - circle.x) / 12;

  [...]

Posted in motion | Tagged , , | Leave a comment

QuickBox2D Joint Skinning

Well... while on the topic of skinning I figured I'd post something I've been meaning to post for awhile. Currently, joint skinning leaves something to be desired in QuickBox2D. This is because I haven't had the need to skin many joints ... and also because with joints like pulley, prismatic, revolute etc... I'm not entirely [...]

Posted in Box2D, QuickBox2D | Tagged , , , | 11 Comments