Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<plugin name="btn_duck" url="../skin/duck.png" keep="true" visible="true" align="center" x="0" y="-20" ondown="playsound_menu1();" /> <plugin name="btn_twit" url="../skin/twit_bird.png" keep="true" visible="true" align="center" x="200" y="-80" ondown="playsound_menu2();" /> <action name="preload"> preloadsound(audio/sound_menu.mp3); preloadsound(audio/sound_menu2.mp3); </action> <action name="playsound_menu1"> playsound(sound_menu1, audio/sound_menu.mp3,1); </action> <action name="playsound_menu2"> playsound(sound_menu2, sound_menu2.mp3,1); </action> <plugin name="soundinterface" url="soundinterface.swf" alturl="soundinterface.js" preload="true" rootpath="audio/" volume="0.6" mute="false" onloaded="preload();" /> |
This post has been edited 7 times, last edit by "Tuur" (Apr 22nd 2012, 7:32pm)
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
<krpano version="1.0.8" logkey="true" onstart="audiotest();"> <view hlookat="0" vlookat="0" fov="65" maxpixelzoom="1.0" fovmax="100" /> <preview url="../saas_4.tiles/preview.jpg" /> <plugin name="btn_duck" url="../skin/duck.png" keep="true" visible="true" align="center" x="0" y="-20" ondown="playsound_menu1();" /> <plugin name="btn_twit" url="../skin/twit_bird.png" keep="true" visible="true" align="center" x="200" y="-80" ondown="playsound_menu2();" /> <action name="audiotest"> preloadsound(audio/sound_menu.mp3); preloadsound(audio/sound_menu2.mp3); </action> <action name="playsound_menu1"> playsound(sound_menu1, audio/sound_menu.mp3,1); </action> <action name="playsound_menu2"> playsound(sound_menu2, sound_menu2.mp3,1); </action> <plugin name="soundinterface" url="soundinterface.swf" alturl="soundinterface.js" preload="true" rootpath="audio/" volume="0.6" mute="false" onloaded="audiotest();" /> </krpano> |
![]() |
Source code |
1 2 3 4 5 6 7 8 |
preload(audio/sound_menu.mp3); <action name="preload"> addplugin(preloader); set(plugin[preloader].visible, false); set(plugin[preloader].keep, true); set(plugin[preloader].onloaded, removeplugin(preloader)); set(plugin[preloader].url, %1); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Quoted
I'm email Klaus.
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
the onloaded event doesn't work / can't be used when preloading is enabled!![]()
</plugin></plugin></plugin>