InstanceName.RviAutoRotate()

RviAutoRotate(DeltaX, DeltaY)

Automatically rotates the 3D Model on the X and Y axis when calling 'RviRender()'

Language version: ActionScript 3.0.
Player version: Flash Player 9.

>

Parameters

DeltaX:Number - Number of frames to rotate on the X axis.

DeltaY:Number - Number of frames to rotate on the Y axis.

Example

The following example initializes the FreeSpin3D component instance called 'myFreeSpin' and rotates it.

myFreeSpin.RviInit(Start);

function Start(Successes:Boolean){
   myFreeSpin.RviAutoRotate(1,1);
   this.addEventListener(Event.ENTER_FRAME, GameLoop);
}
function GameLoop(iEvent:Event) {
   myFreeSpin.RviRender(true);
}