< action name = "nextscene" > add(newsceneindex, scene[get(xml.scene)].index, 1); if(newsceneindex LT scene.count, loadscene(get(scene[get(newsceneindex...
拖拽热点: <action name="draghotspot"> spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l'); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(dr...
添加文字热点,调用方法: <hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 60);add_all_the_time_tooltip_for_VR()" ath="-15" a...
拖拽或者moveTo: <action name="control_startup" autorun="onstart"> set(control.mouse, moveto); set(control.touch, moveto); </action> 先要改成drag就是将moveto改成drag
在scene外面 <action name="do_crop_animation"> <!-- 为热点注册属性 --> registerattribute(xframes, calc((imagewidth / %1) BOR 0)); registerattribute(yframes, calc((...
Object.defineProperty(this , 'navigator' , {value: { platform: "" }}) 或ie Object.defineProperty(navigator,'platform',{get:function(){return '';}});