Question : Pepervision3D classes  problem

Hi, does anyone know why I am getting this error?

1004: Namespace was not found or is not a a compile-time constant


Have I not installed PV3D correctly? I am pointing Flash to the src folder within the trunk folder to get the classes.

Stumped! Thanks
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.materials.*;
 
var container:Sprite=new Sprite  ;
 
container.x=stage.stageWidth * 0.5;
container.x=stage.stageHeight * 0.5;
 
addChild(container);
 
var scene:Scene3D=new Scene3D(container);
var camera:Camera3d=new Camera3D  ;
camera.zoom=5;
 
var bam:BitmapAssetMaterial=new BitmapAssetMaterial(FlashIcon);
bam.oneSide=false;
bam.smooth=true;
 
for (var i:uint=0; i < 50; i++) {
 
	var p:Plane=new Plane(bam,253,149,2,2);
	scene.addChild(p);
 
	p.x=Math.random() * 1000 - 500;
	p.y=Math.random() * 1000 - 500;
	p.z=Math.random() * 1000 - 500;
 
	p.rotationY=Math,random() * 360;
 
	scene.renderCamera.camera;
}
Open in New Window Select All

Answer : Pepervision3D classes  problem

Possible solution from this thread, although it's regarding Away3D and not Pv3D, it's still relevant.

http://groups.google.com/group/away3d-dev/browse_thread/thread/9bf349c37aab279a

"various way to fix it have been noted: try typing the full import to arcane
(presume you've already tried this). try clearing your aso files in cs3 (i
assume your using cs3 as i've not heard of this occurring anywhere else),
try inserting a return character before the namespace reference (my personal
favorite :D) - these thing have all 'apparantly' fixed the compile error in
the past. I find no documented reference to this problem in the adobe
bugtracker which is strange - clearly the code is correct but something is
going wrong in the compiler execution. might post one myself"
Random Solutions  
 
programming4us programming4us