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.


Sorry for the misunderstanding, i just want to mean the context parameter of the Sound object.
Hi, what do you mean with "streaming sound"?Hi,
in soundinterface plugin i cant see any streaming sound option in the pre-documentation in this post. Is that possible to add that feature?
|
|
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 |
<plugin name="soundinterface"
url="../plugins/soundinterface.swf"
rootpath="library/sound/"
onloaded="preloadsound(../sound/loop1.mp3);"
/>
<plugin name="jukebox_stop" url="../images/ui/jukebox_stop.png"
onhover="showtext(Müzik: Durdur);"
smoothing="true"
align="leftbottom"
edge="center"
x="45"
y="15"
onclick="stopsound(bg_music);"
onover="tween(alpha, 0.5, 0.5, easeOutExpo);"
onout ="tween(alpha, 1, 0.5, easeOutExpo);"
/>
<plugin name="jukebox_play" url="../images/ui/jukebox_play.png"
onhover="showtext(Müzik: Başlat);"
smoothing="true"
align="leftbottom"
edge="center"
x="15"
y="15"
onloaded="playsound(bg_music,loop1.mp3,0);"
onclick="playsound(bg_music,loop1.mp3,0);"
onover="tween(alpha, 0.5, 0.5, easeOutExpo);"
onout ="tween(alpha, 1, 0.5, easeOutExpo);"
/>
|
Hi,Sorry for the misunderstanding, i just want to mean the context parameter of the Sound object.
There is a problem with the stop and play button in IE; the sound do not play at the beginning. But when you close and re-open the link the sound plays fine (with IE). When you run in Firefox browser there is no problem. At first i thought that about the context parameter is too long, and if we can assign the buffering data amount in XML it can be ok (the default value is 1 second)... But now i think this is not the problem. Here is the link of the panorama that i tried and the codes below:
Any sights?
|
|
Source code |
1 2 3 4 5 |
<plugin name="soundinterface"
url="../plugins/soundinterface.swf"
rootpath="library/sound/"
onloaded="preloadsound(../sound/loop1.mp3);playsound(bg_music,loop1.mp3,0);"
/>
|
Yes i can understand it now. Thank you very much it works fine on my example.Hi,
the playsound() call in "onloaded" event of the "jukebox_play" plugin is not okay,
this "onloaded" event is called when "jukebox_play.png" was loaded,
but it is not guaranteed that the soundinterface.swf was already loaded,
to fix it just move the playsound() from the "jukebox_play" onloaded
to the onloaded of the "soundinterface.swf",
Hi,why does the partial image stop when panning to the left and right in the demo? Shouldn't this be a loop (never-ending)? Like a QVR? It just abruptly stops.

Thanks!Yes i can understand it now. Thank you very much it works fine on my example.
BTW, tech support is very important and you really pay attention nearly every post and e-mails. I am glad to work with your API. *thumbup*

Hi,I don't know how far you are along with the 1.08 release, but what do you say about integrating (at least experimentally in upcoming beta) some of the new projections that are floating around recently (panini, equirect etc)?
joergen

![]()
Source code
1 if(condition, trueaction, falseaction);
- condition
- can be a single variable, e.g. if(fullscreen, trace(fullscreen mode), trace(window mode));
- or a comparison of two variables, e.g. if(fullscreen == true, action(fullscreen) );
- at the moment only "==" for equal and "!=" for not equal are possible
|
|
Source code |
1 |
if(hlookat == -179, xxx); |
checking the hlookat value with == will be difficult, because in the most cases
Quoted
I've tried
![]()
Source code
1 if(hlookat == -179, xxx);
where xxx is the standard set of tween instructions to turn the view (from a delaycall event) but it just seems to prevent the tween from happening altogether, whatever value I test. (Even if I test for hlookat == hlookat, or do != instead of ==, or use view.hlookat).
