closepanoobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
set(plugin[data].soundOn, true);
playpanosounds(forcesounds);
set(plugin[data].soundOn, false);
stoppanosounds();
if(plugin[data].firstPanoHasBeenPlayed==false,
set(plugin[data].firstPanoHasBeenPlayed,true);
set(autorotate.enabled,true);
);
if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
delayedcall(5, hideintroimage() );
set(plugin[data].introImageHasBeenPlayed,true););
set(plugin[helpScreen].visible,true);
set(plugin[info].onclick,closeHelp();)
set(plugin[helpScreen].visible,false);
set(plugin[info].onclick,displayHelp();)
tween(plugin[%1].alpha, 1.0, 0.3, easeInQuad);
tween(plugin[%1].scale, 1.05, 0.3, easeInQuad);
tween(plugin[%1].alpha, 0.8, 0.3, easeInQuad);
tween(plugin[%1].scale, 1.0, 0.3, easeInQuad);
set(plugin[slide].onclick,slide_action_out);
set(plugin[strap].onclick,slide_action_out);
set(plugin[strapArrow].rotate,180);
tween(plugin[thumbArray].x, 10%, 1, easeOutQuint);
tween(plugin[thumbMovePrev].x, 5%,1, easeOutQuint);
tween(plugin[thumbMoveNext].x, 5%, 1, easeOutQuint);
thumbsResizeEventHandler();
set(plugin[slide].onclick,slide_action_in);
set(plugin[strap].onclick,slide_action_in);
set(plugin[strapArrow].rotate,0);
tween(plugin[thumbArray].x, 0, 1, easeOutQuint);
tween(plugin[thumbMovePrev].x, 0, 1, easeOutQuint);
tween(plugin[thumbMoveNext].x, 0, 1, easeOutQuint);
set(plugin[thumbMovePrev].visible,false);
set(plugin[thumbMoveNext].visible,false);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);,
set(leftborder, get(area.pixelheight));
sub(leftborder, truethumbsheight);
div(leftborder, 2);
mul(leftborder, -1);
if (plugin[thumbBgLayout].y LT leftborder, inc(plugin[thumbBgLayout].y, %1););
if (plugin[thumbBgLayout].y GT leftborder, set(plugin[thumbBgLayout].y, get(leftborder)););
);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);,
set(rightborder, get(area.pixelheight));
sub(rightborder, truethumbsheight);
div(rightborder, 2);
if (plugin[thumbBgLayout].y GT rightborder, dec(plugin[thumbBgLayout].y, %1););
if (plugin[thumbBgLayout].y LT rightborder, set(plugin[thumbBgLayout].y, get(rightborder)););
);
plugin[thumbArray].updatepos();
copy(truethumbsheight, plugin[thumbArray].pixelheight);
if (area.pixelheight GT truethumbsheight,
set(plugin[thumbBgLayout].y, 0);displayThumbsScrolls(false);,
if (plugin[slide].onclick == slide_action_out, displayThumbsScrolls(true););
);
set(plugin[thumbMovePrev].visible, %1);
set(plugin[thumbMovePrev].enabled, %1);
set(plugin[thumbMoveNext].visible, %1);
set(plugin[thumbMoveNext].enabled, %1);
if (ishtml5 == true,
set(plugin[thumbMovePrev].height, 5%);
set(plugin[thumbMoveNext].height, 5%);
);
inc(plugin[thumbnailsData].nbThumbnailsLoaded, 1);
if(plugin[thumbnailsData].nbThumbnailsLoaded GE 4,
setThumbnailsVisible();
adjusthtml5thumbsplugins();
);
set(plugin[thumb_hanningfield0].visible, true);
set(plugin[thumb_hanningfield1].visible, true);
set(plugin[thumb_hanningfield2].visible, true);
set(plugin[thumb_hanningfield3].visible, true);
if (isflash,
set(plugin[panotourmapsthumb].mapsopened,'true');
tween(plugin[panotourmaps].x,0%);
tween(area.x,0%);
tween(area.width,75%);
if (mapready,
plugin[panotourmaps].showControls();
,);
,);
if (isflash,
set(plugin[panotourmapsthumb].mapsopened,'false');
tween(plugin[panotourmaps].x,-25%);
tween(area.x,0%);
tween(area.width,100%);
if (mapready,
plugin[panotourmaps].hideControls();
,);
,);
if (isflash,
if (mapready,
plugin[panotourmaps].activatespot(%1);
plugin[panotourmaps].ensurespotvisible(%1);
,);
,);
if (isflash,
if (mapready,
plugin[panotourmaps].activatespot(none);
,);
,);
tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad);
tween(view.architectural, 0.0, distance(1.0, 0.45), easeoutquad);
tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(display.flash10,on); );
set(display.flash10,off);
tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad);
tween(view.fisheye, 0.0 ,distance(1.0, 0.30), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(view.fovmax,179); tween(view.fisheye, 0.35, distance(1.0,1.25)); );
tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad);
tween(view.architectural, 1.0, distance(1.0, 0.45), easeoutquad);
tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false);set(display.flash10,on); );
set(display.flash10,off);
tween(view.architectural, 0.0, 0.25);
set(backtonormalfirst,false);
if(view.pannini == true, set(backtonormalfirst,true) );
if(view.stereographic == false, set(backtonormalfirst,true) );
if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
set(view.pannini, false);
set(view.stereographic, true);
set(view.fovmax, 150);
tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
set(display.flash10,off);
tween(view.architectural, 0.0, 0.25);
set(backtonormalfirst,false);
if(view.pannini == false, set(backtonormalfirst,true) );
if(view.stereographic == false, set(backtonormalfirst,true) );
if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
set(view.pannini, true);
set(view.stereographic, true);
set(view.fovmax, 150);
tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
set(display.flash10,off);
tween(view.architectural, 0.0, 0.25);
tween(view.vlookat, 90, distance(179, 1.50), easeoutquad);
set(backtonormalfirst,false);
if(view.pannini == true, set(backtonormalfirst,true) );
if(view.stereographic == false, set(backtonormalfirst,true) );
if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
set(view.pannini, false);
set(view.stereographic, true);
set(view.fovmax, 150);
tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
tween(view.fov, 150, distance(179, 0.75), easeoutquad);
if(%1 == none,
stopallsounds();
set(plugin[soundinterface].background,%1);
,
if(plugin[soundinterface].background == %1,
if (%3 == forcesounds,
stopallsounds();playsound(backgroundsound,%1,%2);
)
,
stopallsounds();playsound(backgroundsound,%1,%2);
set(plugin[soundinterface].background,%1);
)
);
stopsound(backgroundsound);
ifnot (stopSequence === undefined,
set(stopSequence, true);
wait(0);
);