Hi Rob will look now to see if that solves the problem.
many thanks :-) On Oct 1, 1:08 am, Rob Bateman <[email protected]> wrote: > Hey mc > > are you calling the screen method before you call view.render? this may be > the problem, try doing it after the render if you can. > > I've also updated the svn to try and get rid of the problem. if you are > using the trunk, see if updating fixes the problem > > cheers! > > Rob > > > > On Mon, Sep 28, 2009 at 1:12 PM, mc <[email protected]> wrote: > > > after digging through ZoomFocusLens.as > > > _camera.zoom and _camera.focus were throwing errors > > > if I hard code the zoom and focus values in the project now works > > (kind of). but all my geometry disappears. > > > cheers > > > On Sep 28, 12:03 pm, mc <[email protected]> wrote: > > > trying to get the 2D coords of a 3D Object using view.camera.screen > > > (3dObj) > > > > for some reason this doesn't work for me > > > > I get the error: > > > > TypeError: Error #1009: Cannot access a property or method of a null > > > object reference. > > > at away3d.cameras.lenses::ZoomFocusLens/project() > > > at away3d.cameras::Camera3D/screen() > > > at Basic_Globe_fla::MainTimeline/onEnterFrame() > > > > line of code that produces the error: > > > > var screenV:ScreenVertex = view.camera.screen(sphere) > > > > have tried to give it a dummy Vertex: > > > > var screenV:ScreenVertex = view.camera.screen(sphere, new Vertex()) > > > > but error is the same > > > > any ideas what this could be? > > > > Many Thanks > > -- > Rob Bateman > Flash Development & Consultancy > > [email protected]
