Li -

Bug 49 is posted in googlecode with an fla file illustrating the problem.

 

The setters work great - thank you!

 

New problem :  TextField3D works great in an FLA timeline script, but when I
try in incorporate a TextField3D object into a class file which extends
ObjectContainer3D, it gives me a "property root not found" compile error at
VectorText.extractFont(this.root.loaderInfo.bytes).  I guess it is because
the object that I am executing the VectorText statement in is not a display
object, but I don't understand how VectorText loads the SWF bytes well
enough to figure out how to fix the problem.  I tried simply putting the
Font.registerFont(myArialClass) and
VectorText.extractFont(root.loaderInfo.bytes) statements in the calling FLA
timeline script, but then TextField3D doesn't see the font.

 

Can you offer any suggestions or explanations?

 

Thanks!

 

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Li
Sent: Wednesday, June 17, 2009 5:59 PM
To: [email protected]
Subject: [away3d] Re: What is the latest/best/simplest 3d text method to
use?

 

Mmm, thats interesting. Could you please post it in the issues section in
away's google code repo?

Anyway, setters and getters are in. Now you can do stuff like this (after
creation):

textfield.textColor = 0x00FF00;
            textfield.textAlpha = 0.25;
            textfield.text = "better";

On Wed, Jun 17, 2009 at 10:55 PM, Ralph Brooker <[email protected]> wrote:

Thanks Li, setters for text string and color would be great.  It looks like
your buildText function will neatly clear and redraw the graphics shape if
you call it from a setter.  I was going to offer to write setters/getters -
let me know if you want any help with them.

 

Also, have you noticed that if you add both a TextField3D and a Trident to
an Away3D scene, it renders a bunch of extra crazy lines and shapes? I seem
to have the same problem adding Sprite3D objects with the Trident or any
LineSegment object.

Ralph

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Li
Sent: Wednesday, June 17, 2009 5:39 PM


To: [email protected]
Subject: [away3d] Re: What is the latest/best/simplest 3d text method to
use?

 

Thanks a lot Ralph! I sometimes forget that Flex does some of the steps for
me =)


Everything is correct. You are also right about the properties being
editable only through the init object, I'll put some setters in for you...
I'll let you now when its done.

 

Reply via email to