|
@@ -211,6 +211,23 @@
|
|
|
jscall('window.onvideoplay()');
|
|
|
<!-- set(hotspot[video].scale, 0.3); -->
|
|
|
</action>
|
|
|
+ <action name="playBgMusic">
|
|
|
+ <!-- 播放背景音乐 -->
|
|
|
+ ifnot(%2 == true, playsound(bgsnd, %1, true););
|
|
|
+ if(%2 == true, pausesoundtoggle(bgsnd););
|
|
|
+ </action>
|
|
|
+ <!-- 关闭所有的声音 -->
|
|
|
+ <action name="closeVoice">
|
|
|
+ pausesoundtoggle(bgsnd);
|
|
|
+ </action>
|
|
|
+ <!-- 播放音乐设置,引入插件 -->
|
|
|
+ <plugin name="soundinterface"
|
|
|
+ url="https://dm.static.elab-plus.com/soundinterface.swf"
|
|
|
+ alturl="https://dm.static.elab-plus.com/soundinterface.js"
|
|
|
+ preload="true"
|
|
|
+ keep="true"
|
|
|
+ loop="false"
|
|
|
+ ></plugin>
|
|
|
<!-- 引导图加载完成后 -->
|
|
|
<!-- <action name="suspendedPlay">
|
|
|
set(hotspot[video].isVideoreadyType, true);
|