AutoRotate Start and Stop from AS3

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
adamo
Posts: 6
Joined: Fri Jun 04, 2010 2:27 pm

How can I easily create a start and stop autorotate function?

I have two buttons - Autorotate_ON and Autorotate_OFF and I need write two AS3 function to control autorotation in my pano.
In API I found only this:
<panoclip>.pano.setAutorotate(<speed:Number>,<delay:Number>,<return to horizon:Number>,<only in focus:Boolean>);

it's ok for start autorotation, but what should I write to stop autorotation?

Regards, Adam
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

If you set the speed to 0 it will stop.
MfG, Thomas
Post Reply