I've got Flash CS5.5, and I wanted to fiddle around with some 3D, so I downloaded Away3D from the website, and don't really know how to get it 'working' with CS5.5?
Can I just place the folder with my .fla files? Or do I have to setup a actionscript path of some sort?
Also can someone give me a snippet to verify away3d works, as i've tried the following code:
package
{
import away3d.containers.View3D;
import away3d.primitives.Sphere;
import flash.display.Sprite;
[SWF(width="500", height="400", frameRate="60", backgroundColor="#FFFFFF")]
public class physicas extends Sprite
{
public function physicas()
{
// create a viewport
var View:View3D = new View3D({x:250,y:200});
addChild(View);
// create a sphere and put it on the 3D stage
var sphere:Sphere = new Sphere();
View.scene.addChild(sphere);
// render the view
View.render();
}
}
}
And I keep getting the output error message:
1118: Implicit coercion of a value with static type Object to a possibly unrelated type away3d.containers:Scene3D.
What does this mean?
Thanks alot.