I'm trying to create some primitive, and some text which will be a
texture for it. The last what I've done was program like this:
//package which create the scene add objects on it
main.as
....
private function createSomeObject():void
{
var c:Cube=new Cube();
c.material=new MovieMaterial(new Texture("A"), {interactive:false,
smooth:true});
addChild(c);
}
//package which create TextField
Texture.as
.......
public class Texture extends Sprite
{
private var txt:TextField=new TextField();
..........
public function Texture(l:String):void
{
txt.text=l;
adChild(txt);
}
}
In this way - I can dinamically create textures with text that I need,
but there are some problems^ for example I create the Cube primitive
with width=depth=height=39, fnd the Texture.swf has the same sithe
width=height=39, but as texture it much smaller, why&
So the question is there another ways to create materials with some
text for primitives? If there will be some source - it would be cool=)