Hello,
Somebody could explain me that strange error I don’t understand.
The following code is ok :
package{
import flash.display.Sprite;
import away3d.containers.View3D;
import away3d.cameras.HoverCamera3D;
public class HoverCam extends Sprite{
private var view=new View3D();
public function HoverCam(){
view.camera=new HoverCamera3D();
view.camera.hover();
}
}
}
But if I specify the type of view:
private var view:View3D=new View3D();
I get the error that method hover() is not defined, why ?!