if(preloading_title_close EQ 1,,
if(%1==true,txtadd(currscenename,'',get(scene[get(xml.scene)].title)); set(layer[top_scene_name].html,get(currscenename)); stoptween(layer[top_scene_name].y); tween(layer[top_scene_name].y,80,1.5,easeOutQuint); stopdelayedcall(nametimer); delayedcall(nametimer,6, tween(layer[top_scene_name].y,-50,1.5,easeOutQuint); );,set(layer[top_scene_name].y,-50);); );
js(click_searchscene());
set(layer[searchscene].visible,false);
loadscene(%1,null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend));
set(layer[top_scene_name].visible,false );
if (scene.count GT 1
,
copy(thumb_size,settings[auto_thumbs].thumb_background_size);
copy(thumb_image_size, settings[auto_thumbs].thumb_size);
copy(style[thumb_image].width, thumb_image_size);
copy(style[thumb_image].height, thumb_image_size);
copy(style[thumb_image].oy, thumb_size);
sub(style[thumb_image].oy, thumb_image_size);
div(style[thumb_image].oy, 2);
copy(style[thumb_image].ox,style[thumb_image].oy);
copy(layer[thumbs_scrollarea].height, thumb_size);
copy(layer[albums_scrollarea].height,thumb_size);
copy(layer[albums].height, thumb_size);
copy(layer[new_thumbs].height, thumb_size);
copy(layer[new_thumbs].y,thumb_size);
add(thumb_width, thumb_size, settings[auto_thumbs].thumb_spacing);
set(album_index, 0);
set(thumb_index, 0);
for(set(i,0), i LT scene.count, inc(i)
,
if(scene[0].album,
if (scene[get(i)].album !== null
,
txtadd(album_name,'album_',get(i));
addlayer(get(album_name));
layer[get(album_name)].loadstyle(album);
set(layer[get(album_name)].parent, albums_scrollarea);
set(layer[get(album_name)].album_index,get(album_index));
mul(layer[get(album_name)].x, get(album_index),get(thumb_width));
if(i==0, set(layer[get(album_name)].url,"%SWFPATH%/skin/group1.png"); );
txtadd(album_thumburl,get(album_name),"_thumburl");
addlayer(get(album_thumburl));
layer[get(album_thumburl)].loadstyle(album_thumburl);
set(layer[get(album_thumburl)].parent,get(album_name));
set(layer[get(album_thumburl)].url,get(scene[get(i)].thumburl));
txtadd(album_title_con,'album_title_con_',get(i));
addlayer(get(album_title_con));
layer[get(album_title_con)].loadstyle(thumb_image_title_container);
set(layer[get(album_title_con)].parent, get(album_thumburl));
set(layer[get(album_title_con)].y, 30);
txtadd(album_title_word,'album_title_word_',get(i));
addlayer(get(album_title_word));
set(layer[get(album_title_word)].html, get(scene[get(i)].album));
layer[get(album_title_word)].loadstyle(thumb_image_title_word);
set(layer[get(album_title_word)].parent, get(album_title_con));
add(layer[albums_scrollarea].width, get(thumb_width));
txtadd(container_name,get(album_name), '_container');
set(layer[get(album_thumburl)].container, get(container_name));
inc(album_index);
addlayer(get(container_name));
layer[get(container_name)].loadstyle(thumbs_container);
set(layer[get(container_name)].album,get(album_name));
txtadd(scroll_sub_container,get(container_name),'_scroll');
addlayer(get(scroll_sub_container));
layer[get(scroll_sub_container)].loadstyle(sub_thumbs_container);
if(device.flash,
set(layer[get(scroll_sub_container)].url,'%SWFPATH%/plugins/scrollarea.swf');
,
set(layer[get(scroll_sub_container)].url,'%SWFPATH%/plugins/scrollarea.js');
);
set(layer[get(scroll_sub_container)].parent,get(container_name));
set(thumb_index, 0);
);
create_thumb();
set(layer[get(thumb_name)].parent, get(scroll_sub_container));
add(layer[get(scroll_sub_container)].width, get(thumb_width));
,
create_thumb();
set(layer[get(thumb_name)].parent,albums_scrollarea);
add(layer[albums_scrollarea].width, get(thumb_width));
);
);
trace(layer[albums].width);
trace(layer[auto_thumbs].width);
trace(layer[auto_thumbs].pixelwidth);
trace(layer[auto_thumbs].pixelheight);
);
if(settings[auto_thumbs].onstart, settings[auto_thumbs].onstart(); );
set(layer[current_thumb_%1].visible,true);
copy(layer[auto_thumbs].width, area.pixelwidth);
sub(layer[auto_thumbs].width,settings[auto_thumbs].left);
sub(layer[auto_thumbs].width, settings[auto_thumbs].right);
copy(layer[auto_thumbs].x, settings[auto_thumbs].left);
copy(layer[auto_thumbs].y,settings[auto_thumbs].bottom);
copy(layer[albums].width, layer[auto_thumbs].width);
sub(layer[albums].width,settings[auto_thumbs].albums_right);
add(layer[albums].width,settings[auto_thumbs].right);
delayedcall(get(container), 0, hide_container(get(container)); );
tween(layer[%1].alpha, 0, .25, easeOutQuad, set(layer[%1].visible, false));
tween(layer[thumbs_left_shadow].alpha, 0, .1); tween(layer[thumbs_right_shadow].alpha, 0, .1);
for(set(i, 0), i LT layer.count, inc(i), if(layer[get(i)].parent ==
layer[get(%1)].parent, if(layer[get(i)].parent == albums_scrollarea, if(scene[0].album, tween_alpha(get(i), .6);
, tween_alpha(get(i), .85); ); , tween_alpha(get(i), .85); ); ) ); tween_alpha(get(%1), 1);
stopdelayedcall(disable_thumbs);
if(!last_parent,set(last_parent,'album_0'););
set(layer[get(last_parent)].url,"%SWFPATH%/skin/bg2.png");
if(container == last_show_sub_container AND layer[get(container)].state=='opened'
,
set(layer[get(container)].state, 'closed');
tween(layer[get(container)].y, -100, 0.5, easeOutQuint);
,
if(layer[get(last_show_sub_container)].state=='opened',
set(layer[get(last_show_sub_container)].state, 'closed');
tween(layer[get(last_show_sub_container)].y, -100, 0.5, easeOutQuint);
);
if(layer[get(container)].state=='closed',
set(layer[get(container)].state, 'opened');
tween(layer[get(container)].y, 100.5, 0.5, easeOutQuint);
set(last_show_sub_container,get(container));
set(last_parent,get(parent));
set(layer[get(parent)].url,"%SWFPATH%/skin/bg1.png");
);
);
txtadd(thumb_name,'thumb_', get(i));
addlayer(get(thumb_name));
layer[get(thumb_name)].loadstyle(thumb);
copy(layer[get(thumb_name)].scene, scene[get(i)].name);
copy(layer[get(thumb_name)].album, album_name);
set(layer[get(thumb_name)].thumb_index, get(thumb_index));
mul(layer[get(thumb_name)].x, get(thumb_index),get(thumb_width));
set(layer[get(thumb_name)].Title, get(scene[get(i)].title));
set(layer[get(thumb_name)].onhover,showtext(get(Title),skintext));
txtadd(thumb_image_name,'thumb_image_',get(i));
addlayer(get(thumb_image_name));
set(layer[get(thumb_image_name)].url,get( scene[get(i)].thumburl));
layer[get(thumb_image_name)].loadstyle(thumb_image);
set(layer[get(thumb_image_name)].parent, get(thumb_name));
txtadd(thumb_image_title_con,'thumb_image_title_con_',get(i));
addlayer(get(thumb_image_title_con));
layer[get(thumb_image_title_con)].loadstyle(thumb_image_title_container);
set(layer[get(thumb_image_title_con)].parent, get(thumb_image_name));
txtadd(thumb_image_title_word,'thumb_image_title_word_',get(i));
addlayer(get(thumb_image_title_word));
set(layer[get(thumb_image_title_word)].html, get(scene[get(i)].title));
layer[get(thumb_image_title_word)].loadstyle(thumb_image_title_word);
set(layer[get(thumb_image_title_word)].parent, get(thumb_image_title_con));
inc(thumb_index); if(i == 0, copy(layer[auto_thumbs].active_album, album_name);
copy(layer[auto_thumbs].active_thumb, thumb_name); );
txtadd(current_thumb,'current_thumb_',get(i)); addlayer(get(current_thumb)); set(layer[get(current_thumb)].url,'%SWFPATH%/skin/pc-icon.png'); set(layer[get(current_thumb)].crop,'160|190|14|14'); set(layer[get(current_thumb)].keep,true); set(layer[get(current_thumb)].parent, get(thumb_name)); set(layer[get(current_thumb)].align, righttop); set(layer[get(current_thumb)].x,4); set(layer[get(current_thumb)].y,4); set(layer[get(current_thumb)].visible,false );
copy(layer[auto_thumbs].width, area.pixelwidth);
sub(layer[auto_thumbs].width,settings[auto_thumbs].left); sub(layer[auto_thumbs].width,
settings[auto_thumbs].right); copy(layer[auto_thumbs].x, settings[auto_thumbs].left);
copy(layer[auto_thumbs].y,settings[auto_thumbs].bottom); copy(layer[albums].width, layer[auto_thumbs].width);
sub(layer[albums].width,settings[auto_thumbs].albums_right); add(layer[albums].width,
settings[auto_thumbs].right);
stopdelayedcall(disable_thumbs);
if(!last_parent,set(last_parent,'album_0'););
set(layer[get(last_parent)].url,"%SWFPATH%/skin/group2.png");
if(container == last_show_sub_container AND layer[get(container)].state=='opened'
,
set(layer[get(container)].state, 'closed');
tween(layer[get(container)].y, -100, 0.5, easeOutQuint);
,
if(layer[get(last_show_sub_container)].state=='opened',
set(layer[get(last_show_sub_container)].state, 'closed');
tween(layer[get(last_show_sub_container)].y, -100, 0.5, easeOutQuint);
);
if(layer[get(container)].state=='closed',
set(layer[get(container)].state, 'opened');
tween(layer[get(container)].y, 202, 0.5, easeOutQuint);
set(last_show_sub_container,get(container));
set(last_parent,get(parent));
set(layer[get(parent)].url,"%SWFPATH%/skin/group1.png");
);
);
delayedcall(get(container), 0, hide_container(get(container)); );
tween(layer[%1].alpha, 0, .25, easeOutQuad, set(layer[%1].visible, false));
tween(layer[thumbs_left_shadow].alpha, 0, .1); tween(layer[thumbs_right_shadow].alpha, 0, .1);
for(set(i, 0), i LT layer.count, inc(i), if(layer[get(i)].parent ==
layer[get(%1)].parent, if(layer[get(i)].parent == albums_scrollarea, if(scene[0].album, tween_alpha(get(i), .6);
, tween_alpha(get(i), .85); ); , tween_alpha(get(i), .85); ); ) ); tween_alpha(get(%1), 1);
if(scene.count GT 1 ,
set(layer[show_current_scene_title].html,get(scene[get(xml.scene)].title));
stoptween(layer[show_current_scene_title].y);
tween(layer[show_current_scene_title].y,80,1.5,easeOutQuint);
stopdelayedcall(nametimer);
delayedcall(nametimer,6,
tween(layer[show_current_scene_title].y,-50,1.5,easeOutQuint);
);
txtadd(active_thumb_name, 'thumb_', get(scene[get(xml.scene)].index));
set(layer[get(layer[auto_thumbs].active_thumb)].bgcolor,'0xffffff');
set(layer[get(layer[auto_thumbs].active_thumb)].bgalpha,1);
copy(layer[auto_thumbs].active_thumb,active_thumb_name);
set(layer[get(layer[auto_thumbs].active_thumb)].bgcolor,'0xF6A600');
set(layer[get(layer[auto_thumbs].active_thumb)].bgalpha,1);
if(layer[get(layer[auto_thumbs].active_album)].as == album,
copy(layer[get(layer[auto_thumbs].active_album)].crop,album_crop); ,
if(layer[auto_thumbs].active_album,copy(layer[get(layer[auto_thumbs].active_album)].crop,thumb_crop)); );
copy(layer[auto_thumbs].active_album,layer[get(active_thumb_name)].album);
if(layer[get(layer[auto_thumbs].active_album)].as == album,
copy(layer[get(layer[auto_thumbs].active_album)].crop,active_album_crop); ,
if(layer[auto_thumbs].active_album, copy(layer[get(layer[auto_thumbs].active_album)].crop,active_thumb_crop); )
);
);
for(set(i, 0), i LT layer.count, inc(i), if(layer[get(i)].parent == %1,
tween_alpha(get(i), 1); ) );
tween(layer[%1].alpha, %2, .25);
if(layer[albums].current_container, copy(thumbs_scrollarea_width,
layer[thumbs_scrollarea].width); if (device.pixelratio == 1, if (device.html5, div(thumbs_scrollarea_width, 2);
); ); if (layer[new_thumbs].pixelwidth GE thumbs_scrollarea_width, mul(a,
thumb_size,layer[get(layer[albums].current_album)].album_index); add(a, thumb_size); div(b, thumb_size, 2);
div(c,layer[get(layer[albums].current_container)].width, 2); sub(result, a, b); sub(result, c);
set(layer[get(layer[albums].current_container)].x, get(result));
sub(layer[get(layer[albums].current_container)].x, get(layer[albums_scrollarea].loverflow));
if(layer[get(layer[albums].current_container)].x GT 0,
add(ox_plus_thumbs_width,layer[get(layer[albums].current_container)].x,
layer[get(layer[albums].current_container)].width); if(ox_plus_thumbs_width GT layer[new_thumbs].pixelwidth,
sub(dif, ox_plus_thumbs_width, layer[new_thumbs].pixelwidth); sub(layer[get(layer[albums].current_container)].x,
dif); ); , set(layer[get(layer[albums].current_container)].x, 0); ); ,
set(layer[get(layer[albums].current_container)].x,0); ); );
if(layer[albums_scrollarea].loverflow GT 3,
tween(layer[albums_left_shadow].alpha, 1, .1); , tween(layer[albums_left_shadow].alpha, 0, .1); );
if(layer[albums_scrollarea].roverflow GT 3, tween(layer[albums_right_shadow].alpha, 1, .1); ,
tween(layer[albums_right_shadow].alpha, 0, .1); ); if(layer[thumbs_scrollarea].loverflow GT 3,
tween(layer[thumbs_left_shadow].alpha, 1, .1); , tween(layer[thumbs_left_shadow].alpha, 0, .1); );
if(layer[thumbs_scrollarea].roverflow GT 3, tween(layer[thumbs_right_shadow].alpha, 1, .1); ,
tween(layer[thumbs_right_shadow].alpha, 0, .1); );
if(webvr.isenabled, copy(loadscene_flags_backup, skin_settings.loadscene_flags);
set(skin_settings.loadscene_flags, MERGE|KEEPVIEW|KEEPMOVING|NOPREVIEW);
webvr_act_as_gyro_in_portrait_mode(true); if(scene.count GT 1, set(hotspot[webvr_prev_scene].visible, true);set(hotspot[webvr_prev_home].visible, true);
set(hotspot[webvr_next_scene].visible, true); set(events[webvr_events].onviewchange, webvr_menu_following()); );
, if(loadscene_flags_backup !== null, copy(skin_settings.loadscene_flags, loadscene_flags_backup));
tween(layer[webvr_rotate_to_landscape_request].alpha, 0.0, 0.0); set(hotspot[webvr_prev_scene].visible, false);
set(hotspot[webvr_next_scene].visible, false); set(hotspot[webvr_prev_home].visible, false);set(events[webvr_events].onviewchange, null); );
if(device.mobile AND webvr.isenabled, div(aspect, stagewidth,
stageheight); if(aspect != lastaspect OR '%1' == 'true', copy(lastaspect, aspect); if(stagewidth GT stageheight,
set(display.stereo, true); set(webvr.mobilevr_sensor_mode, 3); webvr.update();
tween(layer[webvr_rotate_to_landscape_request].alpha, 0.0, 0.0); , set(display.stereo, false);
set(webvr.mobilevr_sensor_mode, 1); webvr.update(); tween(layer[webvr_rotate_to_landscape_request].alpha, 1.0);
delayedcall(3.0, tween(layer[webvr_rotate_to_landscape_request].alpha, 0.0, 1.0); ); ); ); , set(lastaspect, 0);
);
delayedcall(2.0,add_vr_thumbs(););
set(start_ty, 10000);
add(vr_juli,get(view.hlookat),20);
if(%1 == "exit",
callwith(hotspot[vr_tishi_bg],tween(alpha|ty, 0|10000,2.5, easeInQuint|easeInQuint););
callwith(hotspot[vr_tishi], tween(alpha|ty, 0|10000,2.5, easeInQuint|easeInQuint, set(enabled,false)););
,
set(hotspot[vr_tishi_bg].ath,get(view.hlookat));
set(hotspot[vr_tishi].ath,get(view.hlookat));
callwith(hotspot[vr_tishi_bg], copy(ty,start_ty);tween(alpha|ty, 0.5|0 , 3, easeOutQuad|easeOutQuint););
callwith(hotspot[vr_tishi], copy(ty,start_ty);tween(alpha|ty, 1.0|0 , 3, easeOutQuad|easeOutQuint, set(enabled,true)););
vr_yc_thumbs_time(0);
);
for(set(i,0), i LT scene.count, inc(i),
set(vr_thumbs,get(scene[get(i)].name));
txtadd(vr_thumbs_bg,get(vr_thumbs),'bg');
if(%1 == "exit",
callwith(hotspot[get(vr_thumbs_bg)], tween(alpha|ty, 0|10000,2.5, easeInQuint|easeInQuint););
callwith(hotspot[get(vr_thumbs)], tween(alpha|ty, 0|10000,2.5, easeInQuint|easeInQuint, set(enabled,false)););
,
set(hotspot[get(vr_thumbs_bg)].ath,get(vr_juli));
set(hotspot[get(vr_thumbs)].ath,get(vr_juli));
callwith(hotspot[get(vr_thumbs_bg)], copy(ty,start_ty);tween(alpha|ty, 0.5|0 , 3,easeOutQuad|easeOutQuint););
callwith(hotspot[get(vr_thumbs)], copy(ty,start_ty);tween(alpha|ty, 1.0|0 , 3,easeOutQuad|easeOutQuint, set(enabled,true)););
add(vr_juli,20);
);
);
set(vr_hot_ath,0);
set(vr_hot_atv,0);
set(vr_ts,true);
for(set(i,0), i LT scene.count, inc(i),
set(vr_thumbs,get(scene[get(i)].name));
if(vr_ts, set(vr_thumbs_bg,vr_tishi_bg);
set(vr_thumbs,vr_tishi);
set(vr_hot_url,'%SWFPATH%/skin/texts.png');
set(vr_ts,false);
sub(i,1);
,
txtadd(vr_thumbs_bg,get(vr_thumbs),'bg');
set(vr_hot_url,get(scene[get(vr_thumbs)].thumburl));
);
if((vr_hot_ath == 360) OR (vr_hot_ath == 720) OR (vr_hot_ath == 1080),
add(vr_hot_atv,15);
);
addhotspot(get(vr_thumbs_bg));
hotspot[get(vr_thumbs_bg)].loadstyle(panel111);
set(hotspot[get(vr_thumbs_bg)].ath,get(vr_hot_ath));
set(hotspot[get(vr_thumbs_bg)].atv,get(vr_hot_atv));
addhotspot(get(vr_thumbs));
set(hotspot[get(vr_thumbs)].ath,get(vr_hot_ath));
set(hotspot[get(vr_thumbs)].atv,get(vr_hot_atv));
set(hotspot[get(vr_thumbs)].url,get(vr_hot_url));
if((vr_hot_ath == vr_ts) AND (vr_hot_atv == 0),
set(hotspot[vr_tishi].crop,287|0|252|176);
,
txtadd(hotspot[get(vr_thumbs)].onclick,"start_thumbs(exit);loadscene(",get(vr_thumbs),", null, NOPREVIEW|MERGE|KEEPMOVING, BLEND(1));"
);
);
hotspot[get(vr_thumbs)].loadstyle(thumb111);
add(vr_hot_ath,20);
);
set(vr_time,%1);
add(vr_time,1);
set(time_kz,true);
if(vr_time == 15, delete(time_kz,vr_time);start_thumbs(exit););
if(time_kz, delayedcall(1,vr_yc_thumbs_time(get(vr_time))););
180) ? -360 : (dh < -180) ? 360 : 0
hsh += dh*f;
var a = Math.abs(v - hsv) / 90.0;
a = 1.0 * Math.max(1.0 - 2.0*Math.sqrt(a), 0);
v = v + 55.0 - v*1.5;
hsv = hsv*(1.0 - f) + v*f;
hs1.ath = hs2.ath = hs3.ath = hsh;
hs1.atv = hs2.atv = hs3.atv = hsv;
hs1.alpha = hs2.alpha = hs3.alpha = a;
}
]]>
set(layer[Subtitle].visible,true);
set(layer[Subtitle].html,%1);
set(layer[Subtitle].align,%3);
set(layer[Subtitle].css,'text-align:center;color:%4; font-family:"Microsoft YaHei";font-size:%2;font-weight:normal;text-shadow:#000;');
if(skin_settings.gyro AND !device.desktop AND device.html5
,
copy(plugin[skin_gyro].url,plugin[skin_gyro].html5_url);
);
if(skin_settings.webvr AND device.html5 AND device.webgl
,
copy(plugin[WebVR].url, plugin[WebVR].pluginurl);
js(showWebvrBtn());
);
if(skin_settings.littleplanetintro AND (device.webgl OR device.flash) ,
js(littlePlaneOpen(get(xml.scene)));
,
init_gyro();
set(events[init_view_event].onnewscene,'js(initViewSetting(get(xml.scene)));js(initCompassSetting(get(xml.scene),get(view.hlookat)));js(getComment(get(xml.scene)));js(initHotspotSetting(get(xml.scene)));');
);
set(layer[skin_layer].visible, true);
for(set(i,0), i LT scene.count, inc(i),
if(scene[get(i)].lat,
txtadd(spotname,'spot', get(i)); txtadd(spotclickevent, 'skin_hidetooltips(); activatespot(',get(spotname),');
loadscene(',get(scene[get(i)].name), ',null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend));
skin_updatescroll();
delayedcall(0.5,skin_showmap(false));');
copy(scene[get(i)].mapspotname, spotname);
addspot(get(spotname), get(scene[get(i)].lat), get(scene[get(i)].lng), get(scene[get(i)].heading), false,
get(spotclickevent), null);
if(skin_settings.tooltips_mapspots,
set(layer[skin_map].spot[get(spotname)].tooltip
,
get(scene[get(i)].title));
txtadd(layer[skin_map].spot[get(spotname)].onover, 'set(hovering,true);',get(style[skin_tooltips].onover) );
txtadd(layer[skin_map].spot[get(spotname)].onout, 'set(hovering,false);',get(style[skin_tooltips].onout) );
);
);
);
if(xml.scene != null, activatespot(get(scene[get(xml.scene)].mapspotname) ); , activatespot(spot0); );
zoomToSpotsExtent();
copy(lp_scene, xml.scene);
copy(lp_hlookat, view.hlookat);
copy(lp_vlookat, view.vlookat);
copy(lp_fov, view.fov); copy(lp_fovmax, view.fovmax);
copy(lp_limitview,view.limitview);
set(view.fovmax, 170);
set(view.limitview, lookto);
set(view.vlookatmin, 90);
set(view.vlookatmax, 90);
lookat(calc(lp_hlookat - 180), 90, 150, 1, 0, 0);
set(
events[lp_events].onloadcomplete,
delayedcall(
0.5,
if(
lp_scene === xml.scene,
set(control.usercontrol, off);
copy(view.limitview, lp_limitview);
set(view.vlookatmin, null);
set(view.vlookatmax, null);
tween(view.hlookat|view.vlookat|view.fov|view.distortion,
calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0), 3.0, easeOutQuad, set(control.usercontrol, all);
tween(view.fovmax, get(lp_fovmax));
set(view.fovmin,%1);
set(view.vlookatmin,%2);
set(view.vlookatmax,%3);
set(autorotate.horizon,%4);
js(getComment(get(xml.scene)));
js(initHotspotSetting(get(xml.scene)));
set(events[init_view_event].onloadcomplete,'js(initViewSetting(get(xml.scene)));js(initCompassSetting(get(xml.scene),get(view.hlookat)));js(getComment(get(xml.scene)));
js(initHotspotSetting(get(xml.scene)));');
);
delayedcall(3,init_gyro(););
);
);
);
for(set(i,0),i LT hotspot.count,inc(i),
if(%1 == false,
if(hotspot[get(i)].visible == true,
set(hotspot[get(i)].mark,true);set(hotspot[get(i)].visible,%1);
);
,
if(hotspot[get(i)].mark == true,
set(hotspot[get(i)].visible,%1);
);
);
);
mul(mh, area.pixelheight, -1); if(layer[skin_thumbs].state == 'opened',
add(mh,layer[skin_thumbs].height); set(layer[skin_scroll_layer].y, 97); , set(layer[skin_scroll_layer].y,
get(mh)); ); if(layer[skin_map].state == 'opened', sub(hh,area.pixelheight,skin_settings.controlbar_offset);
sub(hh,layer[skin_control_bar].height); sub(hh,32); add(mh,hh); add(mh,skin_settings.controlbar_overlap);
sub(mh, layer[skin_scroll_layer].y_offset); copy(layer[skin_map].height, hh); ); add(mh,
layer[skin_scroll_layer].y_offset); skin_video_updateseekbarwidth(); skin_arrange_buttons();
calc(show_selbuttons, scene.count GT 1); calc(show_thumbutton,
skin_settings.thumbs == true); calc(show_mapbutton, skin_settings.maps == true); calc(show_gyrobutton,
plugin[skin_gyro].available == true AND view.vlookatrange == 180 ); calc(show_vrbutton, webvr.isavailable ==
true); calc(show_fsbutton, device.fullscreensupport == true); set(lpos,6); set(cpos,0); if(show_gyrobutton,
dec(cpos,20)); if(show_vrbutton, dec(cpos,24)); set(rpos,6); calc(show_dirbuttons, !device.mobile AND
((area.pixelwidth + 2*cpos) GT 520)); copy(layer[skin_btn_navi].visible, show_dirbuttons);
copy(layer[skin_btn_prev].visible, show_selbuttons); copy(layer[skin_btn_next].visible, show_selbuttons);
if(show_selbuttons, inc(lpos,44); inc(rpos,44); ); copy(layer[skin_btn_thumbs].visible, show_thumbutton);
copy(layer[skin_btn_thumbs].x, lpos); if(show_thumbutton, inc(lpos,40)); copy(layer[skin_btn_map].visible,
show_mapbutton); copy(layer[skin_btn_map].x, lpos); if(show_mapbutton, inc(lpos,40)); if(show_dirbuttons,
copy(layer[skin_btn_navi].x, cpos); inc(cpos,140); set(layer[skin_btn_gyro].align, center);
copy(layer[skin_btn_gyro].visible, show_gyrobutton); copy(layer[skin_btn_gyro].x, cpos); if(show_gyrobutton,
inc(cpos,48)); set(layer[skin_btn_vr].align, center); copy(layer[skin_btn_vr].visible, show_vrbutton);
copy(layer[skin_btn_vr].x, cpos); if(show_vrbutton, inc(cpos,80)); , set(layer[skin_btn_gyro].align, left);
copy(layer[skin_btn_gyro].visible, show_gyrobutton); copy(layer[skin_btn_gyro].x, lpos); if(show_gyrobutton,
inc(lpos,40)); set(layer[skin_btn_vr].align, left); copy(layer[skin_btn_vr].visible, show_vrbutton);
copy(layer[skin_btn_vr].x, lpos); if(show_vrbutton, inc(lpos,80)); ); copy(layer[skin_btn_hide].x, rpos);
inc(rpos,40); copy(layer[skin_btn_fs].visible, show_fsbutton); copy(layer[skin_btn_fs].x, rpos);
if(show_fsbutton, inc(rpos,40));
if(layer[skin_thumbs].loaded, set(cursceneindex, 0); if(xml.scene,
copy(cursceneindex, scene[get(xml.scene)].index));
layer[skin_thumbs].setcenter(get(scene[get(cursceneindex)].thumbx), get(scene[get(cursceneindex)].thumby)); );
copy(padding,skin_settings.thumbs_padding);
if(skin_settings.thumbs_scrollbuttons, if(loverflow GT 0, set(layer[skin_thumbs_scrollleft].visible,true),
set(layer[skin_thumbs_scrollleft].visible,false) ); if(roverflow GT 0,
set(layer[skin_thumbs_scrollright].visible,true), set(layer[skin_thumbs_scrollright].visible,false) ); );
if(skin_settings.thumbs_scrollindicator, if(woverflow GT 0,
set(layer[skin_thumbs_scrollindicator].visible,true); sub(iw,pixelwidth,woverflow); div(pw,iw,pixelwidth);
div(px,loverflow,woverflow); mul(pw,iw); copy(layer[skin_thumbs_scrollindicator].width,pw); sub(iw,pw);
sub(iw,padding); sub(iw,padding); mul(px,iw); add(px,padding); copy(layer[skin_thumbs_scrollindicator].x,px); ,
set(layer[skin_thumbs_scrollindicator].visible,false); ); );
if(xml.scene !== null AND scene[get(xml.scene)].index GE 0,
if(skin_settings.title, if(title, txtadd(layer[skin_title].html, get(title), ' - ',
get(scene[get(xml.scene)].title) ); , copy(layer[skin_title].html, scene[get(xml.scene)].title ); );
delayedcall(0.1, set(layer[skin_title].visible,true) ); ); if(skin_settings.thumbs_loop == false,
if(scene[get(xml.scene)].index GT 0, set(layer[skin_btn_prev].enabled, true); set(layer[skin_btn_prev].alpha,
1.0); , set(layer[skin_btn_prev].enabled, false); set(layer[skin_btn_prev].alpha, 0.3); ); sub(lastsceneindex,
scene.count, 1); if(scene[get(xml.scene)].index LT lastsceneindex, set(layer[skin_btn_next].enabled, true);
set(layer[skin_btn_next].alpha, 1.0); , set(layer[skin_btn_next].enabled, false);
set(layer[skin_btn_next].alpha, 0.3); ); , if(scene.count GT 1, set(layer[skin_btn_prev].enabled, true);
set(layer[skin_btn_prev].alpha, 1.0); set(layer[skin_btn_next].enabled, true); set(layer[skin_btn_next].alpha,
1.0); , set(layer[skin_btn_prev].enabled, false); set(layer[skin_btn_prev].alpha, 0.3);
set(layer[skin_btn_next].enabled, false); set(layer[skin_btn_next].alpha, 0.3); ); ); if(scene.count GT 1,
set(layer[skin_btn_prev_fs].visible, true); set(layer[skin_btn_next_fs].visible, true); ,
set(layer[skin_btn_prev_fs].visible, false); set(layer[skin_btn_next_fs].visible, false); ); txtadd(parentname,
'skin_thumb_', get(scene[get(xml.scene)].index)); if(layer[get(parentname)], set(layer[skin_thumbborder].parent,
get(parentname)); set(layer[skin_thumbborder].visible, true); , set(layer[skin_thumbborder].visible, false); );
if(scene[get(xml.scene)].mapspotname, layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname));
layer[skin_map].pantospot(get(scene[get(xml.scene)].mapspotname)); ); if(plugin[skin_gyro].isavailable == true
AND view.vlookatrange == 180, set(layer[skin_btn_gyro].visible, true); , set(layer[skin_btn_gyro].visible,
false) ); if(view.vlookatrange LT 180, if(backup_control_bouncinglimits === null,
copy(backup_control_bouncinglimits, control.bouncinglimits); ); set(control.bouncinglimits, false); ,
if(backup_control_bouncinglimits !== null, copy(control.bouncinglimits, backup_control_bouncinglimits); ); );
if(scene[get(xml.scene)].isvideopano AND plugin[video] !== null, skin_video_addcontrols(); ,
skin_video_removecontrols(); ); );
if(scene[%1], copy(cursceneindex, scene[get(xml.scene)].index); copy(newsceneindex,
scene[%1].index); txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex));
layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),calc(newsceneindex LT
cursceneindex ? skin_settings.loadscene_blend_prev : (newsceneindex GT cursceneindex ?
skin_settings.loadscene_blend_next : skin_settings.loadscene_blend))); );
add(newsceneindex, scene[get(xml.scene)].index, %1); if(newsceneindex GE 0 AND
newsceneindex LT scene.count, txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex));
layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),calc(%1 LT 0 ?
skin_settings.loadscene_blend_prev : skin_settings.loadscene_blend_next)); );
add(newsceneindex, scene[get(xml.scene)].index, %1); sub(lastsceneindex,
scene.count, 1); if(newsceneindex LT 0, copy(newsceneindex,lastsceneindex)); if(newsceneindex GT lastsceneindex,
set(newsceneindex,0)); layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx),
get(scene[get(newsceneindex)].thumby));
loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),calc(%1 LT 0 ?
skin_settings.loadscene_blend_prev : skin_settings.loadscene_blend_next));
set(layer[skin_tooltip].alpha,0.0); set(layer[skin_tooltip].visible,false);
if('%1' !== 'null', set(strength,0.7); if(%2 != null, set(strength,%2));
set(layer[skin_buttonglow].parent, %1); set(layer[skin_buttonglow].visible, true);
tween(layer[skin_buttonglow].alpha, get(strength), 0.07); , tween(layer[skin_buttonglow].alpha, 0.0, 0.1,
default, set(layer[skin_buttonglow].parent, null); set(layer[skin_buttonglow].visible, false); ); );
set(layer[get(name)].y_opened, get(layer[get(name)].y));
set(layer[get(name)].y_closed, calc(layer[get(name)].y - skin_settings.controlbar_offset -
skin_settings.controlbar_height + skin_settings.controlbar_offset_closed));
if(layer[skin_map].state != 'closed', skin_showmap(false); wait(0.40); );
if(layer[skin_thumbs].state != 'closed', skin_showthumbs(false); wait(0.25); ); set(hidetime, calc('%1' ==
'instant' ? 0.0 : 0.5)); tween(layer[skin_scroll_window].y, get(layer[skin_scroll_window ].y_closed),
get(hidetime)); tween(layer[skin_splitter_bottom].y, get(layer[skin_splitter_bottom].y_closed), get(hidetime));
tween(layer[skin_control_bar].y, get(layer[skin_control_bar ].y_closed), get(hidetime));
tween(layer[skin_btn_prev_fs].x, 0, get(hidetime)); tween(layer[skin_btn_next_fs].x, 0, get(hidetime));
if(layer[skin_logo], tween(layer[skin_logo].alpha, 0.0, 0.5, default, set(layer[skin_logo].visible,false)); );
stopdelayedcall(skin_btn_show_alpha); set(layer[skin_btn_show].visible, true); delayedcall(skin_btn_show_alpha,
get(hidetime), tween(layer[skin_btn_show].alpha, 0.25, 0.25); );
tween(layer[skin_scroll_window ].y, get(layer[skin_scroll_window ].y_opened));
tween(layer[skin_splitter_bottom].y, get(layer[skin_splitter_bottom].y_opened)); tween(layer[skin_control_bar
].y, get(layer[skin_control_bar ].y_opened)); tween(layer[skin_btn_prev_fs].x, -50);
tween(layer[skin_btn_next_fs].x, -50); if(layer[skin_logo], set(layer[skin_logo].visible,true);
tween(layer[skin_logo].alpha, 1.0); ); stopdelayedcall(skin_btn_show_alpha); set(layer[skin_btn_show].visible,
false); delayedcall(skin_btn_show_alpha, 0.25, tween(layer[skin_btn_show].alpha, 0.0, 0.0); );
if(!webvr_open,
if(%1 == null,
if(layer[thumbs_background].state == 'closed',
set(show,true),
set(show,false)
);
,
set(show,%1);
);
if(
show,
set(layer[thumbs_background].state, 'opened');
tween(layer[thumbs_background].y, 97, 0.5, easeOutQuint);
set(layer[thumbs_background].visible, true);
if(scene[0].album,
if(!last_show_sub_container,
set(last_show_sub_container,"album_0_container");
);
set(layer[get(last_show_sub_container)].state, 'opened');
tween(layer[get(last_show_sub_container)].y, 202, 0.5, easeOutQuint);
);
,
set(layer[thumbs_background].state, 'closed');
tween(layer[thumbs_background].y, -100, 0.5, easeOutQuint,
set(layer[thumbs_background].visible, false););
if(last_show_sub_container,
set(layer[get(last_show_sub_container)].state, 'closed');
tween(layer[get(last_show_sub_container)].y, -122, 0.5, easeOutQuint);
);
);
);
if(%1 == null,
if(layer[skin_map].state == 'closed', set(show,true), set(show,false));
,
set(show,%1); );
mul(mh, layer[skin_scroll_layer].pixelheight, -1);
if(show,
tween(layer[skin_thumbs_container].alpha, 0.0, 0.25, default, set(layer[skin_thumbs_container].visible,false));
set(layer[skin_map].visible, true);
tween(layer[skin_map].alpha, 1.0, 0.25);
set(layer[skin_map].state,
'opened');
sub(hh,area.pixelheight,skin_settings.controlbar_offset);
sub(hh,layer[skin_control_bar].height);
sub(hh,32); add(mh,hh); sub(hh,skin_settings.controlbar_overlap);
copy(layer[skin_map].height, hh);
tween(layer[skin_scroll_layer].y, get(mh), 0.5, easeOutQuint); , if(layer[skin_map].state != 'closed',
set(layer[skin_map].state, 'closed'); add(mh, layer[skin_scroll_layer].y_offset); tween(layer[skin_map].alpha,
0.0, 0.5, easeOutQuint); tween(layer[skin_scroll_layer].y, get(mh), 0.5, easeOutQuint,
set(layer[skin_map].visible,false) ); ); );
if(keycode == 33, skin_nextscene_loop(-1) ); if(keycode == 34,
skin_nextscene_loop(+1) ); if(keycode == 35, skin_gotoscene(calc(scene.count-1)) ); if(keycode == 36,
skin_gotoscene(0) );
delayedcall(0.1, if(scene[get(xml.scene)].havevrimage,
loadscene(get(xml.scene), null, MERGE|KEEPVIEW|KEEPMOVING|KEEPPLUGIN|NOPREVIEW, BLEND(0.5)); ); );
set(events[skin_events].onclick, skin_video_clickevent() );
set(plugin[video].onvideoready, skin_video_updatestate() ); set(plugin[video].onvideoplay,
skin_video_updatestate() ); set(plugin[video].onvideopaused, skin_video_updatestate() );
set(plugin[video].onvideocomplete, skin_video_updatestate() ); if(plugin[video].ispaused AND
plugin[video].pausedonstart, set(layer[skin_video_playpause].state, 'visible');
set(layer[skin_video_playpause].enabled, true); tween(layer[skin_video_playpause].alpha, 1.0); );
delayedcall(skin_video_delayedvisible, 0.25, set(layer[skin_video_controls].visible, true) );
skin_video_updateseekbarwidth(); set(layer[skin_video_seekpos].x,0); set(layer[skin_video_loadbar].width,0);
setinterval(skin_video_seek_updates, 0.5, skin_video_updatetime() );
stopdelayedcall(skin_video_delayedvisible);
set(events[skin_events].onclick, null); set(layer[skin_video_playpause].alpha, 0.0);
set(layer[skin_video_controls].visible, false); clearinterval(skin_video_seek_updates);
copy(t1, plugin[video].time); copy(t2, plugin[video].totaltime); if(%1 !==
null, calc(t1, %1 * t2); ); div(t1_min, t1, 60); mod(t1_sec, t1, 60); Math.floor(t1_min); Math.floor(t1_sec);
div(t2_min, t2, 60); mod(t2_sec, t2, 60); Math.floor(t2_min); Math.floor(t2_sec);
calc(layer[skin_video_time].html, t1_min + ':' + (t1_sec LT 10 ? '0' : '') + t1_sec + ' / ' + t2_min + ':' +
(t2_sec LT 10 ? '0' : '') + t2_sec); calc(layer[skin_video_seekpos].x, (t1 / t2 * 100) + '%');
calc(layer[skin_video_loadbar].width, (plugin[video].loadedbytes / plugin[video].totalbytes * 100) + '%');
if(skin_settings.title, calc(layer[skin_video_seekbar_container].width,
0 - (32 + layer[skin_title].pixelwidth + layer[skin_video_time].pixelwidth));
calc(layer[skin_video_seekbar_container].x, layer[skin_title].pixelwidth + 16); ,
calc(layer[skin_video_seekbar_container].width, 0 - (24 + layer[skin_video_time].pixelwidth));
set(layer[skin_video_seekbar_container].x, 8); );
asyncloop(pressed, screentolayer(skin_video_seekbar,
mouse.stagex,mouse.stagey, lx,ly); calc(seekpos, lx / layer[skin_video_seekbar].pixelwidth); clamp(seekpos, 0.0,
1.0); skin_video_updatetime(seekpos); , plugin[video].seek(calc((seekpos * 100) + '%')); );
calc(layer[skin_video_playpause].crop, plugin[video].ispaused ? '0|640|64|64'
: '64|640|64|64'); if(plugin[video].iscomplete, set(layer[skin_video_playpause].state, 'visible');
tween(layer[skin_video_playpause].alpha, 1.0); );
if(plugin[video].ispaused, plugin[video].play();
set(layer[skin_video_playpause].state, 'hidden'); tween(layer[skin_video_playpause].alpha, 0.0); ,
plugin[video].pause(); set(layer[skin_video_playpause].state, 'visible');
tween(layer[skin_video_playpause].alpha, 1.0); delayedcall(autohide_pp, 2.0,
set(layer[skin_video_playpause].state,'hidden'); tween(layer[skin_video_playpause].alpha, 0.0); ); );
stopdelayedcall(autohide_pp); switch(layer[skin_video_playpause].state,
'visible', 'hidden'); if(layer[skin_video_playpause].state == 'hidden', tween(layer[skin_video_playpause].alpha,
0.0); , tween(layer[skin_video_playpause].alpha, 1.0); delayedcall(autohide_pp, 2.0,
set(layer[skin_video_playpause].state,'hidden'); tween(layer[skin_video_playpause].alpha, 0.0); ); );
switch(control.touch, moveto, drag); switch(control.mouse, moveto, drag);
if(view.vlookat LT -80 OR view.vlookat GT +80, tween(view.vlookat, 0.0, 1.0,
easeInOutSine); tween(view.fov, 100, distance(150,0.8)); );
set(view.fovmax, 140);
tween(view.distortionfovlink, 0.5, distance(1.0,0.5));
skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5));
skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.35, distance(1.0,0.5));
skin_view_look_straight(); tween(view.architectural, 1.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5));
skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8));
skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 1.0, distance(1.0,0.8)); if(view.distortion LT 0.1, tween(view.distortion, 1.0,
distance(1.0,0.8)); );
set(view.stereographic, true);
set(view.fovmax, 160);
tween(view.distortionfovlink, 0.5, distance(1.0,0.5));
tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5));
tween(view.distortion, 1.0, distance(1.0,0.8));
tween(view.fov, 150, distance(150,0.8));
tween(view.vlookat, 90, distance(100,0.8));
add(new_hlookat, view.hlookat, 123.0);
tween(view.hlookat, get(new_hlookat), distance(100,0.8));
tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5));
tween(view.distortion, 2.8, distance(1.0,0.5),easeOutQuad,
skin_view_look_straight();
set(view_type_changing,false);
if(multi_view_type !== null,
delayedcall(0.1,change_multi_view(multi_view_type));
);
);
skin_view_look_straight();
tween(view.architectural, 1.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5));
tween(view.distortion, 0.0, distance(1.0,0.5));
skin_view_look_straight();
tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5));
tween(view.distortion, 1.0, distance(1.0,0.8));
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l'); sub(drag_adjustx,
mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx,
mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv); );
set(layer[tour_guide_alert].url,%1); set(layer[tour_guide_alert].visible,true);
set(layer[tour_guide_alert].alpha,1); delayedcall(4, tween(layer[tour_guide_alert].alpha,0,1));
if(plugin[snow] === null,
addplugin(snow);
if(device.html5,set(plugin[snow].url,'%SWFPATH%/plugins/snow.js');,set(plugin[snow].url,'%SWFPATH%/plugins/snow.swf');)
set(plugin[snow].floor,0.7);
set(plugin[snow].zorder,1);
set(plugin[snow].keep,false);
);
if('%1' == 'defaultsnow', defaultsnow());
if('%1' == 'snowballs', snowballs());
if('%1' == 'snowflakes', snowflakes());
if('%1' == 'silverstars', silverstars());
if('%1' == 'goldenstars', goldenstars());
if('%1' == 'hearts', hearts());
if('%1' == 'smileys', smileys());
if('%1' == 'money', money());
if('%1' == 'rain', rain());
if('%1' == 'midrain', midrain());
if('%1' == 'heavyrain', heavyrain());
if('%1' =='custom', customeffect(%2));
set(plugin[snow].mode, snow); set(plugin[snow].blendmode, normal);
set(plugin[snow].flakes, 4000); set(plugin[snow].color, 0xFFFFFF); set(plugin[snow].speed, 1.0);
set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 4.0);
set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl,
'%SWFPATH%/snow_image/snowball.png'); set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 2000);
set(plugin[snow].imagescale, 0.5); set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0);
set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 2.0); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl,
'%SWFPATH%/snow_image/snowflake.png'); set(plugin[snow].blendmode, add); set(plugin[snow].flakes, 2000);
set(plugin[snow].imagescale, 0.4); set(plugin[snow].speed, 0.5); set(plugin[snow].shake, 8.0);
set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 2.0); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl,
'%SWFPATH%/snow_image/silverstar.png'); set(plugin[snow].blendmode, add); set(plugin[snow].flakes, 2000);
set(plugin[snow].imagescale, 0.3); set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0);
set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 2.0); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl,
'%SWFPATH%/snow_image/star.png'); set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 1000);
set(plugin[snow].imagescale, 1.0); set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0);
set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 1.9); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/heart.png');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 250); set(plugin[snow].imagescale, 0.5);
set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0);
set(plugin[snow].spreading, 1.5); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/smiley.png');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 1000); set(plugin[snow].imagescale, 1.0);
set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0);
set(plugin[snow].spreading, 1.5); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/redpack.png');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 500); set(plugin[snow].imagescale, 0.8);
set(plugin[snow].speed, 0.8); set(plugin[snow].shake, 8.0); set(plugin[snow].speedvariance, 3.0);
set(plugin[snow].spreading, 2.5); set(plugin[snow].wind, 0.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/rain.png');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 1000); set(plugin[snow].color, 0x7FAFFF);
set(plugin[snow].speed, 20.0); set(plugin[snow].shake, 1.0); set(plugin[snow].speedvariance, 1.0);
set(plugin[snow].spreading, 4.0); set(plugin[snow].wind, 2.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/rain.png');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 2500); set(plugin[snow].color, 0x7FAFFF);
set(plugin[snow].speed, 20.0); set(plugin[snow].shake, 1.0); set(plugin[snow].speedvariance, 1.0);
set(plugin[snow].spreading, 6.0); set(plugin[snow].wind, 2.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/rain.png');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 4000); set(plugin[snow].color, 0x9FAFFF);
set(plugin[snow].speed, 20.0); set(plugin[snow].shake, 0.0); set(plugin[snow].speedvariance, 1.0);
set(plugin[snow].spreading, 10.0); set(plugin[snow].wind, 2.0);
set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%1');
set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 500); set(plugin[snow].imagescale, 1.0);
set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0);
set(plugin[snow].spreading, 1.9); set(plugin[snow].wind, 0.0);
registerattribute(xframes, calc((imagewidth / %1) BOR 0));
registerattribute(yframes, calc((imageheight / %2) BOR 0)); registerattribute(frames, calc(xframes * yframes));
registerattribute(frame, 0); set(crop, '0|0|%1|%2'); setinterval(calc('crop_anim_' + name), calc(1.0 / %3),
if(loaded, inc(frame); if(frame GE frames, if(onlastframe !== null, onlastframe() ); set(frame,0); ); mod(xpos,
frame, xframes); div(ypos, frame, xframes); Math.floor(ypos); mul(xpos, %1); mul(ypos, %2); calc(crop, xpos +
'|' + ypos + '|%1|%2'); , clearinterval(calc('crop_anim_' + name)); ); );
for(set(i,0), i LT hotspot.count, inc(i), copy(lhotspot, hotspot[get(i)]);
if(lhotspot.hsvrfalse,
set(lhotspot.visible,false);
);
if(lhotspot.hsvrtrue,
set(lhotspot.visible,true);
);
);
for(set(i,0), i LT hotspot.count, inc(i), copy(lhotspot, hotspot[get(i)]);
if(lhotspot.hsvrfalse, set(lhotspot.visible,true); ); if(lhotspot.hsvrtrue, set(lhotspot.visible,false); ); );
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].linkedscene,%3);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].hsvrfalse,true);
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'looktohotspot(get(name));loadscene(get(linkedscene), null, MERGE, BLEND(1));'); ,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"scene"));');
);
if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); );
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(scene[get(linkedscene)].title);
if(webvr.isenabled,set(visible,false));
txtadd(vrhs,'vr',get(name));
addhotspot(get(vrhs));
copy(hotspot[get(vrhs)].url,url);
copy(hotspot[get(vrhs)].ath,ath);
copy(hotspot[get(vrhs)].atv,atv);
copy(hotspot[get(vrhs)].linkedscene,linkedscene);
copy(hotspot[get(vrhs)].width,width);
copy(hotspot[get(vrhs)].height,height);
copy(hotspot[get(vrhs)].onclick,onclick);
if(%6 == '1',
txtadd(hotspot[get(vrhs)].onloaded
,
'do_crop_animation(128,128, 60);');
);
txtadd(hotspot[get(vrhs)].onloaded,
'if(webvr.isenabled,set(visible,true),set(visible,false));');
set(hotspot[get(vrhs)].visible,false);
set(hotspot[get(vrhs)].hsvrtrue,true); ");
set(schp_name,%2);
addhotspot(get(schp_name)); set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4); set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3); set(hotspot[get(schp_name)].hotspotlink,%9);
set(hotspot[get(schp_name)].width,'prop'); set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(%3,skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'js(linkopen(get(hotspot[get(name)].hotspotlink),%11));'); ,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"link"));'););
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); );
if(%10 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
);
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].wordcontent,%9);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(%3,skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'toggle_word_show(true,get(hotspot[get(name)].hotspottitle),get(hotspot[get(name)].wordcontent));');
,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"text"));');
);
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); );
if(%10 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
);
set(schp_name,%2);
addhotspot(get(schp_name));
if(device.flash,
set(hotspot[get(schp_name)].url,'%SWFPATH%/plugins/videoplayer.swf');
,
if(device.android,
set(hotspot[get(schp_name)].url,'%SWFPATH%/plugins/videoplayer2.js');
,
set(hotspot[get(schp_name)].url,'%SWFPATH%/plugins/videoplayer.js?v=103103');
);
);
if(device.ios,
if(device.ios11,
set(hotspot[get(schp_name)].videourl,%1);
,
txtadd(localurl,'/data/mediares/',%18);
set(hotspot[get(schp_name)].videourl,%1);
);
,
set(hotspot[get(schp_name)].videourl,%1);
);
set(hotspot[get(schp_name)].posterurl,%17);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].distorted,true);
set(hotspot[get(schp_name)].edge,'center');
set(hotspot[get(schp_name)].scale,'1.0');
set(hotspot[get(schp_name)].rx,%6);
set(hotspot[get(schp_name)].ry,%7);
set(hotspot[get(schp_name)].rz,%8);
set(hotspot[get(schp_name)].ox,%9);
set(hotspot[get(schp_name)].oy,%10);
set(hotspot[get(schp_name)].loop,%11);
set(hotspot[get(schp_name)].depth,%12);
set(hotspot[get(schp_name)].pausedonstart,%13);
set(hotspot[get(schp_name)].width,%14);
set(hotspot[get(schp_name)].height,%15);
set(hotspot[get(schp_name)].onclick,'togglevideoplay(%2)');
if(%16 ==true,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(update_video_tie_pos(get(xml.scene),get(name),get(ath),get(atv),"text"));');
,
set(hotspot[get(schp_name)].capture,false);
txtadd(schp_name_btn,get(schp_name),'_btn');
addhotspot(get(schp_name_btn));
set(hotspot[get(schp_name_btn)].url,'%SWFPATH%/skin/hs_video.png');
set(hotspot[get(schp_name_btn)].scale,0.5);
set(hotspot[get(schp_name_btn)].zorder,50);
set(hotspot[get(schp_name_btn)].ath,%4);
set(hotspot[get(schp_name_btn)].atv,%5);
if(%13 == false, set(hotspot[get(schp_name_btn)].visible,false););
set(hotspot[get(schp_name_btn)].onclick,'togglevideoplay(%2)');
);
set(videohotspot,%1);
txtadd(videohotspot_btn,get(videohotspot),'_btn');
if(hotspot[get(videohotspot)].ispaused,
set(hotspot[get(videohotspot_btn)].visible,false);
hotspot[get(videohotspot)].play();
,
set(hotspot[get(videohotspot_btn)].visible,true);
hotspot[get(videohotspot)].pause();
);
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].distorted,true);
set(hotspot[get(schp_name)].edge,'center');
set(hotspot[get(schp_name)].scale,'1.0');
set(hotspot[get(schp_name)].distorted,true);
set(hotspot[get(schp_name)].rx,%6);
set(hotspot[get(schp_name)].ry,%7);
set(hotspot[get(schp_name)].rz,%8);
set(hotspot[get(schp_name)].ox,%9);
set(hotspot[get(schp_name)].oy,%10);
set(hotspot[get(schp_name)].loop,%11);
set(hotspot[get(schp_name)].depth,%12);
set(hotspot[get(schp_name)].pausedonstart,%13);
set(hotspot[get(schp_name)].width,%14);
set(hotspot[get(schp_name)].height,%15);
if(%16 ==true,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(update_video_tie_pos(get(xml.scene),get(name),get(ath),get(atv),"text"));');
);
set(schp_name,%2);
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].hotspotlink,%4);
set(schp_name,%2);
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].wordcontent,%9);
set(hotspot[get(schp_name)].hotspotlink,%8);
set(hotspot[get(schp_name)].alpha,1);
set(hotspot[get(schp_name)].scale,1);
set(hotspot[get(schp_name)].autoalpha,false);
set(hotspot[get(schp_name)].distorted,false);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,true);
set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext));
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].onclick,'js(__krfn.utils.linkopen(get(hotspot[get(name)].hotspotlink),%2));');
if(device.mobile,set(hotspot[get(schp_name)].scale,0.8));
if(%7 == false,
,
set(hotspot[get(schp_name)].ondown,draghotspot(););
set(hotspot[get(schp_name)].onup,js(__krfn.angle.updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"imgtext")));
);
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(60,60, 30);");
);
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
set(hotspot[get(schp_name)].onout,null);
set(hotspot[get(schp_name)].onover,null);
txtadd(tooltipname, 'tooltip_', get(schp_name));
if(%10 == true,
set(plugin[get(tooltipname)].visible,true);,
set(plugin[get(tooltipname)].visible,false);
);
set(schp_name,%1);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].keep,false);
set(hotspot[get(schp_name)].visible,true);
set(hotspot[get(schp_name)].handcursor,true);
set(hotspot[get(schp_name)].capture,true);
set(hotspot[get(schp_name)].blendmode,'normal');
set(hotspot[get(schp_name)].style,'');
set(hotspot[get(schp_name)].alpha,1.0);
set(hotspot[get(schp_name)].autoalpha,false);
set(hotspot[get(schp_name)].fillcolor,'0xDDDDDD');
set(hotspot[get(schp_name)].borderalpha,0.5);
set(hotspot[get(schp_name)].borderwidth,1.0);
set(hotspot[get(schp_name)].bordercolor,'0xCCCCC');
set(hotspot[get(schp_name)].borderalpha,1.0);
set(hotspot[get(schp_name)].polyline,%4);
if(%2 == true,
set(hotspot[get(schp_name)].onclick,js(dothing(get(hotspot[get(name)]),%3)));
);
set(schp_name,%2); addhotspot(get(schp_name)); set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4); set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3); set(hotspot[get(schp_name)].musicsrc,%9);
set(hotspot[get(schp_name)].width,'prop'); set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'play_hotspot_voice(get(hotspot[get(name)].musicsrc));'); ,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"voice"));');
); if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"););
if(%10 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null););
set(schp_name,%2); if(around_object_id === null,set(around_object_id,0));
addhotspot(get(schp_name)); set(hotspot[get(schp_name)].url,%1); set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5); set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].aroundpath,%9); if('%10' == null OR '%10' == undefined,
set(hotspot[get(schp_name)].filecount,36);, set(hotspot[get(schp_name)].filecount,%10); );
set(hotspot[get(schp_name)].aroundobjectid,get(around_object_id)); set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50'); set(hotspot[get(schp_name)].visible,%8);
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'buildframes(get(hotspot[get(name)].aroundpath),get(hotspot[get(name)].filecount),get(hotspot[get(name)].aroundobjectid));set(settings.objectid,get(hotspot[get(name)].aroundobjectid));set(settings.objectnum,36);');
inc(around_object_id); , set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"around"));');
); if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); ); if(%11 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);"); );
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].galleryname,%9);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'js(toggleBtns());show_gallery(get(galleryname));');
,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"image"));');
);
if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
);
if(%10 == true, txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
);
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'js(obj_buildframes(%9,%11));');
,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"obj"));');
);
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
);
if(%10 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
);
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'js(show_redpack(%9,%3));');
,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"redpack"));');
);
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
);
if(%10 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
);
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext));
if(%7 == false,
set(hotspot[get(schp_name)].onclick,js(playvideo(%9)) );
,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"video"));');
);
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); );
if(%10 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
set(hotspot[get(schp_name)].onhover,null);
);
set(schp_name,%2);
addhotspot(get(schp_name));
set(hotspot[get(schp_name)].url,%1);
set(hotspot[get(schp_name)].ath,%4);
set(hotspot[get(schp_name)].atv,%5);
set(hotspot[get(schp_name)].hotspottitle,%3);
set(hotspot[get(schp_name)].width,'prop');
set(hotspot[get(schp_name)].height,'50');
set(hotspot[get(schp_name)].visible,%8);
if(%7 == false,
set(hotspot[get(schp_name)].onclick,'js(product_buildframes(%10));');
,
set(hotspot[get(schp_name)].ondown,'draghotspot();');
set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"product"));');
);
if(%6 == '1',
txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
);
if(%9 == true,
txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
);
txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
set(plugin[get(tooltipname)].align,right);
set(plugin[get(tooltipname)].edge,left);
set(plugin[get(tooltipname)].x,0);
set(plugin[get(tooltipname)].y,2);
set(plugin[get(tooltipname)].autowidth,true);
set(plugin[get(tooltipname)].height,36);
if(device.mobile,set(plugin[get(tooltipname)].scale,0.7));
if(device.mobile,set(plugin[get(tooltipname)].height,48));
set(plugin[get(tooltipname)].background,true);
set(plugin[get(tooltipname)].backgroundcolor,0x000000);
set(plugin[get(tooltipname)].roundedge,5);
set(plugin[get(tooltipname)].backgroundalpha,0.567);
set(plugin[get(tooltipname)].padding,5);
set(plugin[get(tooltipname)].vcenter,true);
set(plugin[get(tooltipname)].border,true);
set(plugin[get(tooltipname)].borderwidth,1.9);
set(plugin[get(tooltipname)].bordercolor,0xBDB76B);
set(plugin[get(tooltipname)].glow,0);
set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
if(device.mobile,
set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
font-family:STXihei; font-weight:bold; font-size:14px;'); );
set(plugin[get(tooltipname)].textshadow,0);
set(plugin[get(tooltipname)].textshadowrange,6.0);
set(plugin[get(tooltipname)].textshadowangle,90);
if(text ==
'' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
set(plugin[get(tooltipname)].enabled,false);
set(layer[mapzoomclose].visible,true);
set(layer[mapzoom].visible,false);
set(layer[mapcontainer].width,100%);
set(layer[mapcontainer].height,100%);
set(layer[mapcontainer].x,0);
set(layer[mapcontainer].bgalpha,0.5);
set(layer[map].scale,2.4);
js(toggleBtns(0));
set(layer[mapcontainer].align,center);
set(layer[map].align,center);
set(layer[mapzoomclose].align,righttop);
set(layer[mapzoomclose].visible,true);
set(layer[mapzoom].visible,false);
set(layer[mapcontainer].width,100%);
set(layer[mapcontainer].height,100%);
set(layer[mapcontainer].x,0);
set(layer[mapcontainer].bgalpha,0.5);
set(layer[map].scale,1.4);
js(toggleBtns(0));
set(layer[mapcontainer].align,center);
set(layer[map].align,center);
set(layer[mapzoomclose].align,righttop);
set(layer[mapzoom].visible,true);
set(layer[mapcontainer].width,400);
set(layer[mapcontainer].height,300);
set(layer[mapcontainer].x,95);
set(layer[mapcontainer].bgalpha,0.2);
set(layer[map].scale,1);
set(layer[mapcontainer].align,righttop);
set(layer[map].align,center);
js(toggleBtns(1));
set(layer[mapzoomclose].visible,false);
txtadd(spotidnow,'spot_',get(xml.scene)); copy(layer[radar].x, layer[get(spotidnow)].x);
copy(layer[radar].y, layer[get(spotidnow)].y); copy(layer[activespot].x, layer[get(spotidnow)].x);
copy(layer[activespot].y, layer[get(spotidnow)].y); set(layer[radar].heading, %1); set(layer[radar].visible,
true); set(layer[activespot].visible, true); set(layer[get(spotidnow)].visible, false);
set(tour_point_name, %1); addhotspot(get(tour_point_name));
set(hotspot[get(tour_point_name)].url,'%SWFPATH%/static/images/kr/tourpoint.png');
set(hotspot[get(tour_point_name)].ath,%2); set(hotspot[get(tour_point_name)].atv,%3);
set(hotspot[get(tour_point_name)].visible,%5); set(hotspot[get(tour_point_name)].width,40);
set(hotspot[get(tour_point_name)].height,40); set(hotspot[get(tour_point_name)].zoom,false);
set(hotspot[get(tour_point_name)].ondown,'draghotspot();');
set(hotspot[get(tour_point_name)].onup,'js(putTourGuideLocation(get(name),get(ath),get(atv)));');
set(hotspot[get(tour_point_name)].onclick,'tourpointclick();'); txtadd(tooltipname, 'tooltip_',
get(tour_point_name)); addlayer(get(tooltipname)); txtadd(layer[get(tooltipname)].parent,
'hotspot[',get(tour_point_name),']'); set(layer[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
set(layer[get(tooltipname)].align,center); set(layer[get(tooltipname)].edge,center);
set(layer[get(tooltipname)].width,40); set(layer[get(tooltipname)].height,40);
set(layer[get(tooltipname)].background,false); set(layer[get(tooltipname)].backgroundcolor,0x039be5);
set(layer[get(tooltipname)].roundedge,20); set(layer[get(tooltipname)].glow,4);
set(layer[get(tooltipname)].glowcolor,0xFFFFFF); set(layer[get(tooltipname)].css,'text-align:center;
line-height:40px;color:#000000; font-family:"Microsoft YaHei"; font-weight:normal; font-size:14px;');
set(layer[get(tooltipname)].html,%4); set(layer[get(tooltipname)].enabled,false);
js(krpTourPointClick(get(name)));
if(%1 == true, set(layer[wordtitlestr].html,%2); set(layer[wordcontentstr].html,%3);
set(layer[wordcontainer].visible, true); tween(layer[wordcontainer].alpha, 1.0, 0.5,easeOutQuad); ,
tween(layer[wordcontainer].alpha, 0.0, 0.5,easeOutQuad,set(layer[wordcontainer].visible, false);); );
stopsound(hotspotbgm); playsound(hotspotbgm,%1,1);
if(scene.count GT 1, skin_showthumbs(false); );
div(aspect, %2,%3); mul(new_width, stagewidth, 0.70); div(new_height, new_width,
aspect); mul(max_height, stageheight, 0.70); if(new_height GT max_height, copy(new_height, max_height);
mul(new_width, new_height, aspect); ); div(new_width,stagewidth); div(new_height,stageheight);
mul(new_width,100); mul(new_height,100); roundval(new_width); roundval(new_height); txtadd(layer[%1].width,
get(new_width),'%'); txtadd(layer[%1].height, get(new_height),'%');
copy(plugin[frame0].scale_o,plugin[frame0].scale);
if(%3 != settings.objectid, for(set(i,0), i LT %2, inc(i), txtadd(fname,frame,get(i));
removeplugin(get(fname)); ); ); for(set(i,0), i LT %2, inc(i), txtadd(fname,frame,get(i));
txtadd(furl,%1,get(i),.jpg?imageView2/2/h/450); addplugin(get(fname));
set(plugin[get(fname)].parent,layer[container_obj]); plugin[get(fname)].loadstyle(frame);
copy(plugin[get(fname)].url,furl); ); set(currentframe,0); set(framecount,%2); set(oldmousex,0); showframe(0);
for(set(i,0), i LT framecount, inc(i), txtadd(fname,frame,get(i));
removeplugin(get(fname)); );
layer[container_obj].updatepos(); for(set(i,0), i LT framecount, inc(i),
txtadd(fname,frame,get(i)); if(iszoom, if(wheeldelta_touchscale GT 0, if(startzoom, set(startzoom,false);
copy(start_wheeldelta_touchscale, wheeldelta_touchscale); copy(start_imagescale, plugin[get(fname)].scale); );
div(tmp, wheeldelta_touchscale, start_wheeldelta_touchscale); mul(plugin[get(fname)].scale, start_imagescale,
tmp); , mul(sit,get(wheeldelta),0.05); mul(sit,plugin[get(fname)].scale); plugin[get(fname)].updatepos();
add(plugin[get(fname)].scale,sit); if(plugin[get(fname)].scale LT plugin[get(fname)].scale_o,
copy(plugin[get(fname)].scale,plugin[get(fname)].scale_o);); ); ); );
txtadd(fname,frame,get(currentframe));
txtadd(tempstr,'set(plugin[',get(fname),'].visible,false);'); ifnot(%1 == 0, delayedcall(0.03,get(tempstr)); );
add(currentframe,%1); if(currentframe LT 0, sub(currentframe,framecount,1); ); if(currentframe == framecount,
set(currentframe,0); ); txtadd(fname,frame,get(currentframe)); set(plugin[get(fname)].visible,true);
ifnot(plugin[get(fname)].loaded, set(plugin[loadingtext].visible,true);, set(plugin[loadingtext].visible,false);
);
if(pressed, showframe(get(direction)); delayedcall(0.05,dorotate();); );
if(pressed, sub(temp,oldmousex,mouse.x); if(temp GT 0, set(temp,1); ); if(temp LT 0,
set(temp,-1); ); showframe(get(temp)); copy(oldmousex,mouse.x); delayedcall(0.03,domouserotate();); );
txtadd(na, 'flt_%1_',get(lensflares[obj].item[lensitemobj].name)); txtadd(look,
'lookto_%1_',get(lensflares[obj].item[lensitemobj].name)); txtadd(tras,
'trash_%1_',get(lensflares[obj].item[lensitemobj].name)); txtadd(dust,
'dust_%1_',get(lensflares[obj].item[lensitemobj].name)); if(lensflares[obj].item[lensitemobj].scene == '%1',
vonp(na); vonp(look); vonp(tras); vonp(dust); vonp(flara_on_scene_scroll); vonh_all(tagmini, lensitemobj); );
set(lensflares[obj].item[lensitemobj].scene,get(xml.scene));
set(lensflares[obj].item[lensitemobj].ath,%1);
set(lensflares[obj].item[lensitemobj].atv,%2);
load_flare_content();
addhotspot(sunset_hs); set(hotspot[sunset_hs].url,'%SWFPATH%/static/images/kr/sunset.png');
set(hotspot[sunset_hs].ath,%1); set(hotspot[sunset_hs].atv,%2); set(hotspot[sunset_hs].zorder,100);
set(hotspot[sunset_hs].visible,true);
set(hotspot[sunset_hs].ondown,'draghotspot();ivr_remove_flare(get(xml.scene));');
set(hotspot[sunset_hs].onup,'js(updateEffectSetting(get(xml.scene),get(ath),get(atv)));');
addLensflares('%1','%2');
removehotspot(sunset_hs); ivr_remove_flare(get(xml.scene));
calc(plugin[compass1_pointer].rotate, view.hlookat - global_heading);