Ok I have now deleted all code and left only imports and first 3 variables(scene,camera and view) and now my code looks like this:
import away3d.cameras.*; import away3d.containers.*; import away3d.core.math.*; import away3d.core.render.Renderer; import away3d.core.utils.Cast; import away3d.materials.*; //import away3d.primitives.Plane; var scene:Scene3D; var camera:Camera3D; var view:View3D; and now i get this error: 1004: Namespace was not found or is not a compile-time constant. - AbstractPrimitive.as, Line 14