Working with the BasicView class in Papervision 2.0, I'm getting an error when compiling:
1119: Access of possibly undefined property SPRING through a reference with static type Class.
If I comment out the access of that static property and add the constant value manually, it works as expected:
case "Spring": //CameraType.SPRING:
_camera = new SpringCamera3D();
_camera.target = DisplayObject3D.ZERO;
break;
Here's where it's being defined in the CameraType
class:
/*
* the SPRING constant defines a SpringCamera3D
*/
public static var SPRING :String = "Spring";
Any ideas as to what would cause this to occur? My first guess is a conflict with another static/const var as I've run into problems with Actionscript conflicts like that. Perhaps this ASCollada class (also in the PV lib):
public static const DAE_SPRING_ELEMENT:String = "spring";