showtooltip('hotspot');
tween(alpha, 1);
hideTooltip();
tween(alpha, 0.8);
showTooltip('hotspot');
set(borderwidth, 1);
set(borderwidth, 1);
hideTooltip();
showtooltip('hotspot');
tween(alpha, 1);
hideTooltip();
tween(alpha, 0.8);
showtooltip('hotspot');
tween(alpha, 1);
hideTooltip();
tween(alpha, 0.8);
showtooltip('hotspot');
pauseautorotation(forcehotspot);
hideTooltip();
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
if(plugin[gyroscope],
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
if(scene[get(xml.scene)].planar,
if(plugin[gyroscope].enabled,
switch(plugin[gyroscope].enabled);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
,
if(plugin[gyroscope].activated,
ifnot(plugin[gyroscope].enabled,
switch(plugin[gyroscope].enabled);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
);
);
);
);
if(plugin[gyroscope],
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
if(%1,
set(plugin[gyroscope].activated,true);
,
set(plugin[gyroscope].activated,false);
);
if (%1 != plugin[gyroscope].enabled,
if(plugin[gyroscope].activated,
switch(plugin[gyroscope].enabled);
,
set(plugin[gyroscope].enabled, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
);
);
if(plugin[gyroscope],
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
ifnot(scene[get(xml.scene)].planar,
switch(plugin[gyroscope].enabled);
set(plugin[gyroscope].activated,true);
);
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
,
set(tour_gyroscopedevices, false);
);
,
set(tour_gyroscopedevices, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
if (progress.progress == 1,
delayedcall(0.5, set(layer[loaderinformationtextfield].visible, false); );
,
set(layer[loaderinformationtextfield].visible, true);
);
mul(progresstext, get(progress.progress),100);
roundval(progresstext);
txtadd(progresstext, get(progresstext), %);
set(layer[loaderinformationtextfield].html, get(progresstext));
ifnot(progress.progress GE 1, delayedcall(0.01, loaderinformationupdate() ));
set(layer[footer2].visible, true);
set(layer[footer3].visible, true);
ifnot (themeunanimebarbuilt, themeunanimebuildMenu(); set(themeunanimebarbuilt, true););
set(themeunanimebutton_pos, 0);
set(layer[themeunanimebtn_hidecontrols].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_hidecontrols_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
if (device.desktop,
set(layer[themeunanimebtn_display_help].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_display_help_bg].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_close_help].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_close_help_bg].x , get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.fullscreensupport,
set(layer[themeunanimebtn_openfs].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_closefs].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_openfs_bg ].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_closefs_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
set(layer[themeunanimebtn_share].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_share_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_autotour_on].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_autotour_on_bg].x , get(themeunanimebutton_pos));
set(layer[themeunanimebtn_autotour_off].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_autotour_off_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
if (device.desktop,
set(layer[themeunanimebtn_ctrlmode_drag_to].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_ctrlmode_move_to].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_ctrlmode_move_to_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if(plugin[gyroscope],
set(themeunanimeDisplayGyroscopeButton, false);
if (device.tablet, set(themeunanimeDisplayGyroscopeButton, true););
if (device.mobile, set(themeunanimeDisplayGyroscopeButton, true););
if(themeunanimeDisplayGyroscopeButton,
set(layer[themeunanimebtn_gyroscope_on].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_gyroscope_on_bg ].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_gyroscope_off].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_gyroscope_off_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
);
set(layer[themeunanimebtn_home].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_home_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
if (device.desktop,
set(layer[themeunanimebtn_right].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_right_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_left].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_left_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.desktop,
set(layer[themeunanimebtn_down].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_down_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_up].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_up_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
if (device.desktop,
set(layer[themeunanimebtn_out].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_out_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
set(layer[themeunanimebtn_in].x, get(themeunanimebutton_pos));
set(layer[themeunanimebtn_in_bg].x, get(themeunanimebutton_pos));
inc(themeunanimebutton_pos, 36);
);
themeunanimeshowMenuControls();
txtadd(btn_bg_name, get(name), "_bg");
set(layer[get(btn_bg_name)].crop, "0|48|48|48");
txtadd(btn_bg_name, get(name), "_bg");
set(layer[get(btn_bg_name)].crop, "0|96|48|48");
txtadd(btn_bg_name, get(name), "_bg");
set(layer[get(btn_bg_name)].crop, "0|0|48|48");
hideTooltip();
if (tour_gyroscopedevices,
set(themeunanimemenugyroscopeavailable, true);
themeunanimeupdateGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(themeunanimemenugyroscopeenabled, %1);
themeunanimeupdateGyroscopeButtons();
);
set(layer[themeunanimebtn_gyroscope_off].visible, false);
set(layer[themeunanimebtn_gyroscope_on].visible, false);
set(layer[themeunanimebtn_gyroscope_off_bg].visible, false);
set(layer[themeunanimebtn_gyroscope_on_bg].visible, false);
if (themeunanimemenugyroscopeavailable,
if (themeunanimemenugyroscopeenabled,
set(layer[themeunanimebtn_gyroscope_off].visible, true);
set(layer[themeunanimebtn_gyroscope_on].visible, false);
set(layer[themeunanimebtn_gyroscope_off_bg].visible, true);
set(layer[themeunanimebtn_gyroscope_on_bg].visible, false);
,
set(layer[themeunanimebtn_gyroscope_off].visible, false);
set(layer[themeunanimebtn_gyroscope_on].visible, true);
set(layer[themeunanimebtn_gyroscope_off_bg].visible, false);
set(layer[themeunanimebtn_gyroscope_on_bg].visible, true);
);
,
themeunanimeHideGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(themeunanimeDisplayMenuGyroscopeButtons, false);
if (themeunanimeIsOpened, set(themeunanimeDisplayMenuGyroscopeButtons, true););
if (themeunanimeDisplayMenuGyroscopeButtons,
themeunanimeShowGyroscopeButtons();
,
themeunanimeHideGyroscopeButtons();
);
,
themeunanimeHideGyroscopeButtons();
);
set(layer[themeunanimebtn_ctrlmode_move_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_drag_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_move_to_bg].visible, false);
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].visible, false);
if (tour_controlmodemousetype == "moveto",
set(layer[themeunanimebtn_ctrlmode_drag_to].visible, true);
set(layer[themeunanimebtn_ctrlmode_move_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].visible, true);
set(layer[themeunanimebtn_ctrlmode_move_to_bg].visible, false);
,
set(layer[themeunanimebtn_ctrlmode_move_to].visible, true);
set(layer[themeunanimebtn_ctrlmode_drag_to].visible, false);
set(layer[themeunanimebtn_ctrlmode_move_to_bg].visible, true);
set(layer[themeunanimebtn_ctrlmode_drag_to_bg].visible, false);
);
if (device.desktop,
set(themeunanimeDisplayControlModeButtons, false);
if (themeunanimeIsOpened, set(themeunanimeDisplayControlModeButtons, true););
if (themeunanimeDisplayControlModeButtons,
themeunanimeShowControlModeButtons();
,
themeunanimeHideControlModeButtons();
);
,
themeunanimeHideControlModeButtons();
);
hideTooltip();lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));
set(themeunanimeIsOpened, false);
set(layer[themeunanime_bg].visible, false);
set(layer[themeunanimebtn_showcontrols].visible, true);
set(layer[themeunanimebtn_hidecontrols_bg].visible, false);
set(layer[themeunanimebtn_hidecontrols].visible, false);
set(layer[themeunanimebtn_in_bg].visible, false);
set(layer[themeunanimebtn_out_bg].visible, false);
set(layer[themeunanimebtn_in].visible, false);
set(layer[themeunanimebtn_out].visible, false);
set(layer[themeunanimebtn_home_bg].visible, false);
set(layer[themeunanimebtn_home].visible, false);
set(layer[themeunanimebtn_right_bg].visible, false);
set(layer[themeunanimebtn_left_bg].visible, false);
set(layer[themeunanimebtn_right].visible, false);
set(layer[themeunanimebtn_left].visible, false);
set(layer[themeunanimebtn_down_bg].visible, false);
set(layer[themeunanimebtn_up_bg].visible, false);
set(layer[themeunanimebtn_down].visible, false);
set(layer[themeunanimebtn_up].visible, false);
set(layer[themeunanimebtn_share_bg].visible, false);
set(layer[themeunanimebtn_share].visible, false);
themeunanimeupdateGyroscopeButtons();
themeunanimeupdateControlModeButtons();
themeunanimeupdateFullscreenButtons();
themeunanimeupdateAutotourButtons();
themeunanimeupdateHelpButtons();
set(themeunanimeIsOpened, true);
themeunanimeupdateFullscreenButtons();
themeunanimeupdateAutotourButtons();
themeunanimeupdateGyroscopeButtons();
themeunanimeupdateControlModeButtons();
themeunanimeupdateHelpButtons();
set(layer[themeunanime_bg].visible, true);
set(layer[themeunanimebtn_showcontrols].visible, false);
set(layer[themeunanimebtn_hidecontrols_bg].visible, true);
set(layer[themeunanimebtn_hidecontrols].visible, true);
set(layer[themeunanimebtn_in_bg].visible, true);
set(layer[themeunanimebtn_out_bg].visible, true);
set(layer[themeunanimebtn_in].visible, true);
set(layer[themeunanimebtn_out].visible, true);
set(layer[themeunanimebtn_home_bg].visible, true);
set(layer[themeunanimebtn_home].visible, true);
set(layer[themeunanimebtn_right_bg].visible, true);
set(layer[themeunanimebtn_left_bg].visible, true);
set(layer[themeunanimebtn_right].visible, true);
set(layer[themeunanimebtn_left].visible, true);
set(layer[themeunanimebtn_down_bg].visible, true);
set(layer[themeunanimebtn_up_bg].visible, true);
set(layer[themeunanimebtn_down].visible, true);
set(layer[themeunanimebtn_up].visible, true);
set(layer[themeunanimebtn_share_bg].visible, true);
set(layer[themeunanimebtn_share].visible, true);
if (device.desktop,
set(layer[themeunanimehelpScreen].displayed, true);
set(layer[themeunanimehelpScreenBg].visible,true);
themeunanimeupdateHelpButtons();
);
if (device.desktop,
set(layer[themeunanimehelpScreen].displayed, false);
set(layer[themeunanimehelpScreenBg].visible,false);
themeunanimeupdateHelpButtons();
);
set(layer[themeunanimebtn_display_help].visible, false);
set(layer[themeunanimebtn_close_help].visible, false);
set(layer[themeunanimebtn_display_help_bg].visible, false);
set(layer[themeunanimebtn_close_help_bg].visible, false);
if (layer[themeunanimehelpScreen].displayed,
set(layer[themeunanimebtn_close_help].visible, true);
set(layer[themeunanimebtn_display_help].visible, false);
set(layer[themeunanimebtn_close_help_bg].visible, true);
set(layer[themeunanimebtn_display_help_bg].visible, false);
,
set(layer[themeunanimebtn_display_help].visible, true);
set(layer[themeunanimebtn_close_help].visible, false);
set(layer[themeunanimebtn_display_help_bg].visible, true);
set(layer[themeunanimebtn_close_help_bg].visible, false);
);
if (device.desktop,
set(themeunanimeDisplayHelpButtons, false);
if (themeunanimeIsOpened, set(themeunanimeDisplayHelpButtons, true););
if (themeunanimeDisplayHelpButtons,
themeunanimeShowHelpButtons();
,
themeunanimeHideHelpButtons();
);
,
themeunanimeHideHelpButtons();
);
set(layer[themeunanimebtn_openfs].visible , false);
set(layer[themeunanimebtn_closefs].visible, false);
set(layer[themeunanimebtn_openfs_bg].visible, false);
set(layer[themeunanimebtn_closefs_bg].visible, false);
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[themeunanimebtn_openfs].visible , false);
set(layer[themeunanimebtn_closefs].visible, true);
set(layer[themeunanimebtn_openfs_bg].visible, false);
set(layer[themeunanimebtn_closefs_bg].visible, true);
,
set(layer[themeunanimebtn_openfs].visible ,true);
set(layer[themeunanimebtn_closefs].visible,false);
set(layer[themeunanimebtn_openfs_bg].visible, true);
set(layer[themeunanimebtn_closefs_bg].visible, false);
);
,
themeunanimeHideFullscreenButtons();
);
set(themeunanimeDisplayFullscreenButtons, false);
if (themeunanimeIsOpened, set(themeunanimeDisplayFullscreenButtons, true););
if (themeunanimeDisplayFullscreenButtons,
themeunanimeShowFullscreenButtons();
,
themeunanimeHideFullscreenButtons();
);
set(layer[themeunanimebtn_autotour_off].visible, false);
set(layer[themeunanimebtn_autotour_on].visible , false);
set(layer[themeunanimebtn_autotour_off_bg].visible, false);
set(layer[themeunanimebtn_autotour_on_bg].visible, false);
if (tour_autotourenabled == false,
set(layer[themeunanimebtn_autotour_off].visible, false);
set(layer[themeunanimebtn_autotour_on].visible , true);
set(layer[themeunanimebtn_autotour_off_bg].visible, false);
set(layer[themeunanimebtn_autotour_on_bg].visible, true);
,
set(layer[themeunanimebtn_autotour_off].visible, true);
set(layer[themeunanimebtn_autotour_on].visible , false);
set(layer[themeunanimebtn_autotour_off_bg].visible, true);
set(layer[themeunanimebtn_autotour_on_bg].visible, false);
);
set(themeunanimeDisplayAutotourButtons, false);
if (themeunanimeIsOpened, set(themeunanimeDisplayAutotourButtons, true););
if (themeunanimeDisplayAutotourButtons,
themeunanimeShowAutotourButtons();
,
themeunanimeHideAutotourButtons();
);
set(layer[header].visible, false);
set(layer[header].visible, true);
set(layer[header1].visible, true);
set(layer[logo].visible, false);
set(layer[logo].visible, true);
-
-
-
-
-
-
-
-
-
-
-
-
set(ptplugin[panoramaMenu].jsready, true);
ifnot(ptplugin[panoramaMenu].isOpen,
set(ptplugin[panoramaMenu].isOpen, true);
js(openKolorMenu(panoramaMenu));
,
if(ptplugin[panoramaMenu].jsready,
js(invokePluginFunction(panoramaMenu, showKolorMenu));
);
);
if(ptplugin[panoramaMenu].jsready,
js(invokePluginFunction(panoramaMenu, hideKolorMenu));
);
set(ptplugin[socialShare].jsready, true);
if(ptplugin[socialShare].jsready,
showSocialShare-socialShare();
,
delayedcall(1.0,startOpenSocialShare-socialShare(););
);
ifnot(ptplugin[socialShare].isOpen,
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].currentCall, false);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, true);
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
,
set(ptplugin[socialShare].currentCall, true);
set(ptplugin[socialShare].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showSocialShare-socialShare(););
);
);
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].doNotDeleteMe, false);
,
js(invokePluginFunction(socialShare, closeKolorBox));
);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, false);
set(ptplugin[gallery1].jsready, true);
ifnot(ptplugin[gallery1].isOpen,
set(ptplugin[gallery1].isOpen, true);
set(ptplugin[gallery1].doNotDeleteMe, false);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery1, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(gallery1, toggleKolorBox, %1));
js(invokePluginFunction(gallery1, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[gallery1].isOpen, false);
set(ptplugin[gallery2].jsready, true);
ifnot(ptplugin[gallery2].isOpen,
set(ptplugin[gallery2].isOpen, true);
set(ptplugin[gallery2].doNotDeleteMe, false);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery2, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(gallery2, toggleKolorBox, %1));
js(invokePluginFunction(gallery2, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[gallery2].isOpen, false);
set(ptplugin[gallery3].jsready, true);
ifnot(ptplugin[gallery3].isOpen,
set(ptplugin[gallery3].isOpen, true);
set(ptplugin[gallery3].doNotDeleteMe, false);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery3, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(gallery3, toggleKolorBox, %1));
js(invokePluginFunction(gallery3, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[gallery3].isOpen, false);
set(ptplugin[gallery4].jsready, true);
ifnot(ptplugin[gallery4].isOpen,
set(ptplugin[gallery4].isOpen, true);
set(ptplugin[gallery4].doNotDeleteMe, false);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery4, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(gallery4, toggleKolorBox, %1));
js(invokePluginFunction(gallery4, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[gallery4].isOpen, false);
set(ptplugin[gallery5].jsready, true);
ifnot(ptplugin[gallery5].isOpen,
set(ptplugin[gallery5].isOpen, true);
set(ptplugin[gallery5].doNotDeleteMe, false);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery5, openKolorBox, %1));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(gallery5, toggleKolorBox, %1));
js(invokePluginFunction(gallery5, closeKolorBox));
resumeautorotation(forceplugin);
set(ptplugin[gallery5].isOpen, false);
if (%1 == null,
showlog();trace("Display Image : function called without any image. Verify its parameters in Panotour.");
,
if (layer[displayedStandardImage],
if(layer[displayedStandardImage].doNotDeleteMe,
set(layer[displayedStandardImage].currentCall, false);
set(layer[displayedStandardImage].visible, true);
set(layer[displayedStandardImage].doNotDeleteMe, false);
if (%1 == layer[displayedStandardImage].url,resumeautorotation(forcehotspot);
applyDisplayedImageObjectAnimation(%8);
,
setDisplayedImageObjectParameters(%1, %2, %3, %4, %5, %6, %8);
);
,
set(layer[displayedStandardImage].currentCall, true);
set(layer[displayedStandardImage].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.2,displayImage(%1, %2, %3, %4, %5, %6, %7, %8););
);
,
addlayer(displayedStandardImage);
set(layer[displayedStandardImage].keep, false);
set(layer[displayedStandardImage].onclick, resumeautorotation(forcehotspot);
applyDisplayedImageObjectAnimation(%8););
set(layer[displayedStandardImage].zorder , 99);
set(layer[displayedStandardImage].currentCall, true);
set(layer[displayedStandardImage].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.2,displayImage(%1, %2, %3, %4, %5, %6, %7, %8););
if (%7,pauseautorotation(forcehotspot);
);
set(layer[displayedStandardImage].visible, false);
);
);
if (%1,
tween(layer[displayedStandardImage].width, 1, 1, easeOutQuad, removelayer(displayedStandardImage););
tween(layer[displayedStandardImage].height, 1, 1, easeOutQuad);
,
removelayer(displayedStandardImage);
);
set(layer[displayedStandardImage].url , %1);
set(layer[displayedStandardImage].align , %2);
set(layer[displayedStandardImage].x , %3);
set(layer[displayedStandardImage].y , %4);
if(%7,
set(layer[displayedStandardImage].onloaded, checkDisplayedImageObjectSize(%5,%6));
,
set(layer[displayedStandardImage].width , %5);
set(layer[displayedStandardImage].height, %6);
);
set(layer[displayedStandardImage].fullwidth, get(layer[displayedStandardImage].width));
set(layer[displayedStandardImage].fullheight, get(layer[displayedStandardImage].height));
set(layer[displayedStandardImage].width , 1);
set(layer[displayedStandardImage].height, 1);
if(%1 != "" and %2 != "",
if(%1 == "prop",
set(tempDisplayedImageObjectHeight, %2);
indexoftxt(tempDisplayedImageObjectHeightPercent, get(tempDisplayedImageObjectHeight), "%");
if(tempDisplayedImageObjectHeightPercent GT 0,
txtreplace(tempDisplayedImageObjectHeight, '%', '');
mul(tempDisplayedImageObjectHeight, get(stageheight));
div(tempDisplayedImageObjectHeight, 100);
Math.round(tempDisplayedImageObjectHeight);
);
mul(flyingImgWidth,get(layer[displayedStandardImage].fullwidth),get(tempDisplayedImageObjectHeight));
div(flyingImgWidth,get(layer[displayedStandardImage].fullheight));
Math.round(flyingImgWidth);
tween(layer[displayedStandardImage].width , get(flyingImgWidth), 1, easeOutQuad);
tween(layer[displayedStandardImage].height, get(tempDisplayedImageObjectHeight), 1, easeOutQuad);
,
if(%2 == "prop",
set(tempDisplayedImageObjectWidth, %1);
indexoftxt(tempDisplayedImageObjectWidthPercent, get(tempDisplayedImageObjectWidth), "%");
if(tempDisplayedImageObjectWidthPercent GT 0,
txtreplace(tempDisplayedImageObjectWidth, '%', '');
mul(tempDisplayedImageObjectWidth, get(stagewidth));
div(tempDisplayedImageObjectWidth, 100);
Math.round(tempDisplayedImageObjectWidth);
);
mul(flyingImgHeight,get(layer[displayedStandardImage].fullheight),get(tempDisplayedImageObjectWidth));
div(flyingImgHeight,get(layer[displayedStandardImage].fullwidth));
Math.round(flyingImgHeight);
tween(layer[displayedStandardImage].width , get(tempDisplayedImageObjectWidth), 1, easeOutQuad);
tween(layer[displayedStandardImage].height , get(flyingImgHeight), 1, easeOutQuad);
,
set(tempDisplayedImageObjectWidth, %1);
set(tempDisplayedImageObjectHeight, %2);
indexoftxt(tempDisplayedImageObjectWidthPercent, get(tempDisplayedImageObjectWidth), "%");
indexoftxt(tempDisplayedImageObjectHeightPercent, get(tempDisplayedImageObjectHeight), "%");
if(tempDisplayedImageObjectWidthPercent GT 0,
txtreplace(tempDisplayedImageObjectWidth, '%', '');
mul(tempDisplayedImageObjectWidth, get(stagewidth));
div(tempDisplayedImageObjectWidth, 100);
Math.round(tempDisplayedImageObjectWidth);
);
if(tempDisplayedImageObjectHeightPercent GT 0,
txtreplace(tempDisplayedImageObjectHeight, '%', '');
mul(tempDisplayedImageObjectHeight, get(stageheight));
div(tempDisplayedImageObjectHeight, 100);
Math.round(tempDisplayedImageObjectHeight);
);
tween(layer[displayedStandardImage].width , get(tempDisplayedImageObjectWidth), 1, easeOutQuad);
tween(layer[displayedStandardImage].height, get(tempDisplayedImageObjectHeight), 1, easeOutQuad);
);
);
,
tween(layer[displayedStandardImage].width , get(layer[displayedStandardImage].fullwidth), 1, easeOutQuad);
tween(layer[displayedStandardImage].height, get(layer[displayedStandardImage].fullheight), 1, easeOutQuad);
);
ifnot(layer[displayedStandardImage].currentCall,if(layer[displayedStandardImage].visible,resumeautorotation(forcehotspot);
removelayer(displayedStandardImage);
););
set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);
set(tour_displaycontrols, true); events.dispatch(showtourcontrols);
set(tour_fullscreen,false);js(setFullscreen(false));
set(tour_fullscreen,true);js(setFullscreen(true));
if(tour_fullscreen,exitFullScreen();,enterFullScreen(););
set(tour_fullscreen,false);events.dispatch(onexitfullscreen);
set(tour_fullscreen,true);events.dispatch(onenterfullscreen);
set(fullscreen,false);
set(fullscreen,true);
delayedcall(0,updatescreen(););
changeGyroscopeState(true);
changeGyroscopeState(false);
events.dispatch(onsharetour);