Hey Darcey,

Sorry for the trouble you're having here. All this is still experimental,
thats why it is still a branch!

Try using _textfield.generateText();
before adding it to the scene.

If this still dont work, IM me at [EMAIL PROTECTED] and ill help you get
it running.

On Fri, Dec 5, 2008 at 11:04 AM, Darcey Lloyd <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Have created new project with 2 classes.
>
> Arial.as   (copy and paste from away3d site source on textfield3d)
> and TextTest.as which contains.
>
> Import Arial;
>
> var _textfield:TextField3D = new TextField3D("Test",Arial,{textSize:40});
>         _textfield.material = new ColorMaterial(0xFFFFFF);
>         _textfield.extrudeMaterial = new ColorMaterial(0x333333);
>         _textfield.extrude(10);
>
>
> Full source code at:
> Click here to see 
> files<http://www.allforthecode.co.uk/development/index.php?folder=away3d%2Ftextfields%2Fsrc>
>
> and to preview that code running click 
> here<http://www.allforthecode.co.uk/development/away3d/textfields/bin-debug/TextTest.html>
>
> I get no errors, checked that all is ok by adding a sphere, thats fine.
>
> I downloaded and used the svn trunk textfields.
>
> I think I may have to go the route of bitmaping an image of a textfield and
> use that as a texture for a plane.
>
> Any ideas?
> It's probably something small that I am just overlooking.
>
> Thanks
>
> Darcey
>
>
>
>
>
>
>
> 2008/12/4 Li <[EMAIL PROTECTED]>
>
> Hey,
>>
>> In new TextField3D("hello",theFont, {textSize:40}); theFont can be any
>> type of parameter, that is why its format type is *
>>
>> This is because it can receive either a text string with an URL, or a
>> class.
>>
>> When you use the class approach, you dont need to instantiate the class in
>> an object, just pass the class itself, like this:
>>
>> _textfield = new TextField3D("hello", Arial, {textSize:40});
>>
>> Of course, the class needs to be imported if it is not in the same package
>> as where the textfield is being created.
>>
>> Perhaps this is not clear and I need to make a tutorial about this...
>>
>
>

Reply via email to