A simpler snippet:

var text3d:TextField3D = new TextField3D("Helvetica", {text:"Vector Text!",
                                                                   size:100,

textWidth:2500});
            text3d.material = new WireColorMaterial(0xFFFFFF);
            text3d.bothsides = true;
            text3d.x -= text3d.objectWidth/2;
            text3d.y += text3d.objectHeight/2;
            _view.scene.addChild(text3d);

            var extrudedText3d:TextExtrude = new TextExtrude(text3d,
{subdivisionsXY:2, subdivisionsZ:2});
            extrudedText3d.pushback = true;
            text3d.pushfront = true;
            _view.scene.addChild(extrudedText3d);

extrudedText3d is a mesh, so now you can do:

extrudedText3d.material = new WireColorMaterial(0xFF0000);

hth,
Li

Reply via email to