Does Textfield3D yet in Away3D 4+?

Software: Away3D 4.x

dubletar, Member
Posted: 21 December 2012 08:27 PM   Total Posts: 73

Hi,

I’ve looked and looked and looked… I cannot seem to find textfield3D. Last December a fix/inclusion was ‘scheduled’, but I still cant find textfield3D in any of the releases since then.

   

Avatar
loth, Sr. Member
Posted: 21 December 2012 10:26 PM   Total Posts: 236   [ # 1 ]

hello that’s easy to make you own smile

var j:Sprite3D = new Sprite3D(textMaterial("BlaBla"), 1010);

function 
textMaterial(name String 'yourText') : TextureMaterial {
   
var material TextureMaterial;
   var 
BitmapData = new BitmapData(128128true0x00000000);
   var 
Sprite = new Sprite();
   var 
txt TextField = new TextField();
   
txt.defaultTextFormat = new TextFormat("Verdana"300x00FF00);
   
txt.width 128;
   
txt.height 128;
   
txt.selectable false;
   
txt.mouseEnabled false;
   
txt.wordWrap true;
   
txt.filters [new DropShadowFilter(1450x00000014422)];
   
d.addChild(txt);
   
txt.htmlText name;
   
g.draw(d);
   
material = new TextureMaterial(Cast.bitmapTexture(g));
   
material.alphaBlending true;
   return 
material;
  
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X