Code: Select all
btnRotate.addEventListener(MouseEvent.CLICK, btnRotateClick);
function btnRotateClick(event:MouseEvent) {
if(vr.obj.autoplay==1) {
vr.obj.autoplay=0;
} else {
vr.obj.autoplay=1;
}
}
Obviously what I want to achieve is the ability to start and then stop rotation without haveing to click the object2vr native buttons.
So my quesiton is this: what property or method is accessed by the rotate button on the interface? Looking at the button in the Skin Editor the action description is "Toggle Auto Rotate". In debug mode I can see properties such as autoRotateSpeed and autofwd, both integers, but setting these to zero has no effect. I've also tried addressing the rotation and rotationX properties to no avail. I couldn't see any other obvious properties in the inspector so I'm not sure what to try next.
Any thoughts?