Ooh.. spoke a little too soon. Noticed if I created a shape, like a cube or sphere, there was an 'addSprite' function. This let me place the MCS in my scene. Seems to be causing some z-sorting issues with th sphere, but getting closer now! :)
On Mar 21, 2:27 pm, Revalis <[email protected]> wrote: > Still haven't been able to figure this one out. Any ideas or code > samples successfully using MovieClipSprite out there? > > On Mar 18, 12:08 pm, Revalis <[email protected]> wrote: > > > > > Hey guys, > > > I'm using the latest Away3D for Flash 10 and am having some > > difficulties getting sprites to work. > > > I have a sphere in the scene that I can revolve around and I want data > > points on various areas of the sphere as billboards (that continuously > > face the camera) -- as they will also have dynamic text blocks, I > > figured MovieClipSprite was the way to go. > > > Doing a search on the issue, I found a post with someone using MCS for > > similar purposes, so I figured his code would work fine for my > > purposes: > > > var tf:TextField = new TextField(); > > tf.textColor = 0x00CCFF; > > tf.text = NAME; > > > var s:Sprite = new Sprite(); > > s.addChild(tf); > > > var mcs:MovieClipSprite = new MovieClipSprite( s ); > > mc.addChild( mcs ); > > > mc is a reference to my container, objectContainer3D, in which the > > main sphere is held. > > Testing with this code gives me the following error: > > > 1067: Implicit coercion of a value of type > > away3d.sprites:MovieClipSprite to an unrelated type > > away3d.core.base:Object3D. > > > If I try to cast the mcs as Object3D in the addChild(), I get: > > > Error: ObjectContainer3D.addChild(null) > > at away3d.containers::ObjectContainer3D/addChild() > > > Any suggestions for where I might be going wrong? :)- Hide quoted text - > > - Show quoted text -
