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

flash on 2010-3-15

Get Adobe Flash player
by shapevent 15 Mar 2010
/**
 * 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();
        }
    }
}