public ApplicationSprite() { // see also: http://zproxy.wordpress.com/2009/05/29/using-flint-particle-system-from-jsc/ bitmap = new ActionScript.Images._184098(); renderer = new DisplayObjectRenderer(); renderer.camera.dolly(-400); renderer.camera.projectionDistance = 400; //renderer.y = 175; renderer.y = 0; renderer.x = 250; addChild(renderer); emitter = new Emitter3D(); emitter.addAction(new Move()); emitter.addAction(new DeathZone(new FrustrumZone(renderer.camera, new ScriptCoreLib.ActionScript.flash.geom.Rectangle(-2900, -2150, 5800, 4300)), true)); emitter.position = new Vector3D(0, 0, 0, 1); var __JSC_should_detect_element_type_for_Vector_of_Particle = default(Particle); var particles = Particle3DUtils.createRectangleParticlesFromBitmapData( bitmap.bitmapData, 20, emitter.particleFactory, new Vector3D(-192, 127, 0) ); emitter.addParticles(particles, false); renderer.addEmitter(emitter); emitter.start(); stage.click += explode; var txt = new TextField(); txt.text = "Click on the image"; addChild(txt); }