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 2013-1-13

Get Adobe Flash player
by ohisama 31 Jan 2013
    Embed
/**
 * Copyright ohisama ( http://wonderfl.net/user/ohisama )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/eD1w
 */

package
{
    import org.papervision3d.objects.DisplayObject3D;
    import org.papervision3d.materials.special.ParticleMaterial;
    import org.papervision3d.objects.special.ParticleField;
    import org.papervision3d.view.BasicView;
    import caurina.transitions.Tweener;
    public class test3 extends BasicView
    {
        public function test3() : void
        {
            super(465, 465, false);
            startRendering();
            var mf : ParticleMaterial = new ParticleMaterial(0x00FF00, 1);
            var pf : ParticleField = new ParticleField(mf, 1000, 5, 1000, 1000, 1000);
            scene.addChild(pf);
            setRotation(pf);
        }
        private function setRotation(prmObj : DisplayObject3D) : void
        {
            Tweener.addTween(prmObj,
            {
                rotationX : 360,
                rotationY : 720,
                time : 30,
                transition : "linear",
                onComplete : function() : void
                {
                    setRotation(prmObj);
                }
            });
        }
    }
}