flash on 2010-2-11
♥0 |
Line 19 |
Modified 2010-02-11 21:51:08 |
MIT License
archived:2017-03-20 11:50:43
ActionScript3 source code
/**
* Copyright _azzip ( http://wonderfl.net/user/_azzip )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/4KX6
*/
package
{
import flash.display.*;
import com.actionsnippet.qbox.*;
public class Test extends MovieClip
{
private var test:QuickBox2D;
public function Test()
{
stage.frameRate = 60;
test = new QuickBox2D(this);
test.createStageWalls();
test.addBox( { x:10, y:10, width:2, height:2 } );
test.addCircle( { x:10, y:10, radius:2 } );
test.start();
test.mouseDrag();
}
}
}
/*package
{
import flash.display.*;
import com.actionsnippet.qbox.*;
public class FlashTest extends MovieClip
{
public function FlashTest()
{
stage.frameRate = 60;
var sim:QuickBox2D = new QuickBox2D(this);
sim.createStageWalls();
sim.addBox( { x:5, y:5, width:3, height:3 } );
for (var i:int = 0; i < 100; i++) {
var mx:int = Math.floor(Math.random() * 10);
var my:int = Math.floor(Math.random() * 10);
sim.addCircle( { x:mx, y:my, radius:0.5 } );
}
sim.start();
sim.mouseDrag();
}
}
}*/