there are plenty examples of away code around, look at the tutorial pages on 
away.com
basically you need to render on enterframe, not just once. and make sure your 
camera looks at your model

if you add the output on scene and its holding more than one Mesh its by 
default an ObjectContainer3D
if you do add one by one as proposed in previous mail, you will need declare 
one Object3Container3D and add the meshes inside.

As about typing your code, I'm sorry, I cannot start coding on demand. This is 
your part of the game.
I have to draw a line somewhere, I hope you understand that.

Fabrice

On Feb 5, 2010, at 10:14 PM, [email protected] wrote:

> 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