flash on 2010-3-15
/**
* Copyright shapevent ( http://wonderfl.net/user/shapevent )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/k6vG
*/
package {
import flash.display.*;
public class FlashTest extends MovieClip {
import com.actionsnippet.qbox.*;
public function FlashTest() {
// write as3 code here..
var sim:QuickBox2D = new QuickBox2D(this);
sim.createStageWalls();
var circleA:QuickObject = sim.addCircle({x:3, y:3,
radius:1});
var circleB:QuickObject = sim.addCircle({x:6, y:6,
radius:0.5});
var j:QuickObject = sim.addJoint({type:"distance", a:circleA.body,
b:circleB.body});
/* j.userData.graphics.clear();
j.userData.graphics.lineStyle(2,0xFF0000);
j.userData.graphics.lineTo(50,20);
j.userData.graphics.lineTo(100,100)*/
sim.start();
sim.mouseDrag();
}
}
}