Please Fabrice3D, I would kill for the code to get this working. ;)

In the ZIP above I made a simple cube and mapped the picture of a
digital camera on all sides. It looks great in Prefab, just as I have
imagined it. The camera has 6 planes and each has a texture on it.
It's all in this one exported AS3 class, but I just can't figure out
how to show the entire camera with all 6 planes in Flash.

Can you please please alter this code I have used in my previouse
sample you have seen to get the AS3 class in the ZIP working after
compiling

package
{
 import away3d.containers.View3D;
 import away3d.primitives.Cube;
 import flash.display.Sprite;

 import Test2;

 [SWF(width="500", height="400", frameRate="60",
backgroundColor="#FFFFFF")]
 public class Lesson1 extends Sprite
 {
 public function Lesson1()
 {
 // create a viewport
 var view:View3D = new View3D({x:250,y:200});
 addChild(view);

 var holder:Test2 = new Test2();
 view.scene.addChild(holder);

 holder.scaleX = 0.3;
 holder.scaleY = 0.3;
 holder.scaleZ = 0.3;
 holder.rotationY = 100;

 view.render();
 }
 }

Reply via email to