kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

Camera3D View3D Instantiation Null Variable Error #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. var camera = new Camera3D()
2. var view = new View3D()
3. camera.view = view;

What is the expected output? What do you see instead?
Debug tracing shows null variable problem.

What version of the product are you using? On what operating system?
Flash 10 Debug Player, Flex 3, Flash Develop

Please provide any additional information below.
Resolved the issue but adding

            if (_camera == val || val == null)
                return;
in View3D.as 
and

            if (_view == val || val == null)
                return;
in Camera3D.as

Original issue reported on code.google.com by pandi2...@gmail.com on 28 Jan 2009 at 2:41

GoogleCodeExporter commented 8 years ago
The view property is not supposed to be set manually on the camera - this is 
done for
you when the camera is set on the view. the lines you have above should read:

1. var camera = new Camera3D()
2. var view = new View3D()
3. view.camera = camera;

and then everything should work ok

Original comment by rob.bate...@gmail.com on 5 Feb 2009 at 12:56