In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: QuickBox2D sample

Get Adobe Flash player
by SIHO 04 Mar 2010
/**
 * Copyright SIHO ( http://wonderfl.net/user/SIHO )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/m5dF
 */

// forked from mash's QuickBox2D sample
package {
    import flash.display.*;
    import com.actionsnippet.qbox.*;

    public class FlashTest extends MovieClip {
        public function FlashTest() {
            // write as3 code here..
 
            stage.frameRate = 60;
 
            var sim:QuickBox2D = new QuickBox2D(this);
 
            sim.createStageWalls();
 
            var anchor:QuickObject = sim.addBox({x:5, y:2, width:1/30, height:1/30,density:0});
            var ball:QuickObject = sim.addCircle({x:4.9, y:2, radius:1});
            sim.addJoint({a:anchor.body , b:ball.body,frequencyHz:0.4,dampingRatio:0.01,length:4})

            sim.start();
            sim.mouseDrag();                        
        }
    }
}