TextField3D runtime text change

4 views
Skip to first unread message

wexcell

unread,
Nov 9, 2009, 7:49:17 AM11/9/09
to away3d.dev
Hi again :)

Have a problem with changing tex at runtime, don't know why I can't do
this simply myText3dObj.text = 'bla bla'
the 'myText3dObj' is currently on the scene, and when I'm trying to
change text I have an error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at away3d.core.base::Geometry/removeFace()
at away3d.core.base::Mesh/removeFace()
at away3d.primitives::AbstractPrimitive/buildPrimitive()
at away3d.primitives::TextField3D/buildPrimitive()
at away3d.primitives::AbstractPrimitive/updatePrimitive()
at away3d.primitives::AbstractPrimitive/get geometry()
at away3d.core.traverse::ProjectionTraverser/apply()
at away3d.core.base::Object3D/traverse()
at away3d.containers::ObjectContainer3D/traverse()
at away3d.containers::ObjectContainer3D/traverse()
at away3d.containers::ObjectContainer3D/traverse()
at away3d.containers::Scene3D/update()
at away3d.containers::Scene3D/onUpdate()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at away3d.containers::View3D/notifySceneUpdate()
at away3d.containers::View3D/render()

Li

unread,
Nov 9, 2009, 11:15:22 PM11/9/09
to away3...@googlegroups.com
Looks like its trying to remove the space character and doesn't find anything. Please test your code without spaces if the error dissapears I know what I need to fix =)

wexcell

unread,
Nov 10, 2009, 2:28:06 AM11/10/09
to away3d.dev
Hi,
you have right :) working good without spaces ;)

Li

unread,
Nov 10, 2009, 7:53:52 AM11/10/09
to away3...@googlegroups.com
k, I´ll check it out.
Reply all
Reply to author
Forward
0 new messages