copy(objectbackup.%1,%1);
set(%1,%2);
copy(%1,objectbackup.%1);
%1(idletime, 2.0);
%1(view.fovtype, HFOV);
%1(view.limitview, fullrange);
%1(view.maxpixelzoom, 1.0);
%1(control.zoomtocursor, true);
%1(control.zoomoutcursor, true);
%1(control.mousetype, drag2D);
%1(control.mousespeed, mousespeed);
%1(display.stillquality, HIGHSHARP);
if(control.mousespeed == 0,
set(mbdown, true);
set(lastframepos,null);
objectrotate();
);
set(mbdown, false);
div(mxpos, mouse.x, stagewidth);
mul(framepos, mxpos, image.frames);
roundval(framepos);
if(lastframepos == null, copy(lastframepos,framepos));
sub(framemove, lastframepos, framepos);
copy(lastframepos,framepos);
set(rotatedirection, right);
if(framemove LT 0, mul(framemove,framemove,-1); set(rotatedirection, left); );
if(mbdown,
if(framemove != 0,
if(rotatedirection == left,
dec(image.frame,get(framemove),1,get(image.frames));
,
inc(image.frame,get(framemove),get(image.frames),1);
);
);
delayedcall(0.01,objectrotate());
);
tween(plugin[rotaterightbg].alpha, 0.7, 1.5, easeOutQuad, tween(plugin[rotaterightbg].alpha, 0.0, 2.5, easeInExpo));
tween(plugin[rotateleftbg].alpha, 0.7, 1.5, easeOutQuad, tween(plugin[rotateleftbg].alpha, 0.0, 2.5, easeInExpo));
set(rotateing,true);
rotateleft();
set(rotateing,true);
rotateright();
dec(image.frame,1,1,get(image.frames));
delayedcall(0.02, if(rotateing,rotateleft()) );
inc(image.frame,1,get(image.frames),1);
delayedcall(0.02, if(rotateing,rotateright()) );
set(rotateing,false);