View is a regular Flash sprite/movieclip so instead of view.rotationZ, try
view.rotation

-Pete

On Mon, Jul 27, 2009 at 2:36 PM, frogontop <[email protected]> wrote:

>
> Hi all, i need to rotate the view, not the camera, so I simply added
> this line of code:
> view.rotationZ= -2;
>
> It rotates the view perfectly as needed, however this code no longer
> works:
>
>
> function doClick(e:MouseEvent3D):void
>                {
>
>                        var randomX:Number = Math.random()*8000-1000;
>                        var randomY:Number = Math.random()*8000-1000;
>                        var randomZ:Number = Math.random()*8000-1000;
>                        var randomRot:Number = Math.random()*365;
>                        var randomCamRot:Number = Math.random()*365;
>                        TweenLite.to(carousel, 4,
> {x:randomX,y:randomY,z:randomZ});
>                }
>
> Yet if i remove the view rotation, it works again....
>
> Any ideas?
>
> Thanks abunch.
>
> Jeff




-- 
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Reply via email to