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

PV3D Text 01

Get Adobe Flash player
by logicalyze 11 May 2009
package
{
    import flash.events.Event;
   
    import org.papervision3d.materials.special.Letter3DMaterial;
    import org.papervision3d.typography.Font3D;
    import org.papervision3d.typography.Text3D;
    import org.papervision3d.typography.fonts.HelveticaRoman;
    import org.papervision3d.view.BasicView;

	[SWF(backgroundColor = "0x000000", frameRate = "30")]
    public class Text3D_01 extends BasicView
    {
       
        private var text3D:Text3D;
        private var material:Letter3DMaterial;
        private var font3D:Font3D;
               
        public function Text3D_01 ()
        {
            init();
            startRendering();
        }
       
        private function init():void
        {
            material = new Letter3DMaterial(0xFFFFFF);
			material.doubleSided = true;
            font3D = new HelveticaRoman();
            text3D = new Text3D("Hello! WonderFl.", font3D, material);
            text3D.scale = 5;
            scene.addChild(text3D);
        }
       
        override protected function onRenderTick(event:Event = null):void
        {
            super.onRenderTick(event);
            text3D.yaw(0.5);
            text3D.roll(0.1);
        }
    }
}