You are not logged in.

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.

1

Tuesday, November 8th 2011, 11:45am

BUG with soundinterface ?! -Resolved-

Hi,
I have a swf plugin with its continuous sound, I try to use the action stopallsounds(true) when "onloaded" the plugin but it does not work, the other soundinterface sounds stops but not the swf plugin's sound! The some problem comes when trying with "onstart". *confused*
Also the some problem if I use swf hotspot instead of swf plugin.

Thanks for any reply!

This post has been edited 2 times, last edit by "coolman" (Nov 8th 2011, 2:55pm)


2

Tuesday, November 8th 2011, 12:14pm

Hi,

please provide more informations!

e.g. either the full xml code or the a link the example,
and what do you do in your plugin swf?
how do you play the sound?
how do you load the soundinterface plugin?

one more details about sound stopping - when you using the correct soundinterface plugin version and call "stopallsounds(true)" then krpano calls the Flashplayer SoundMixer.stopAll() function - this should stop all sounds from the same security sandbox - when your plugin or that sound that it plays runs in a different sandbox then krpano is not able to stop it, then you would need to do that by yourself in your plugin,

best regards,
Klaus

3

Tuesday, November 8th 2011, 12:22pm

Hi, thanks for your quick reply! I dont know how SoundMixer.stopAll works but if I use the action stopallsounds(true) with "onclick" it works fine and all the sounds stops when I click on the plugin! But this doesnt work if I use the action with "onloaded" !

Note; the plugin I use is a normal swf animation with its own sound wich start with the animation.

4

Tuesday, November 8th 2011, 12:36pm

Quoted

I dont know how SoundMixer.stopAll works
see the link to the Adobe docs above,

Note; the plugin I use is a normal swf animation with its own sound wich start with the animation.
something like a 'normal' swf doesn't exists
e.g. HOW does it plays the sound? which sandbox? (and about sandbox - see the SoundMixer link above),



Quoted

But this doesnt work if I use the action with "onloaded" !
which onloaded event - that one from the plugin?
has your plugin itself already started playing the sound when this event happens?

best regards,
Klaus

5

Tuesday, November 8th 2011, 1:01pm

Quoted

I dont know how SoundMixer.stopAll works
see the link to the Adobe docs above,

Note; the plugin I use is a normal swf animation with its own sound wich start with the animation.
something like a 'normal' swf doesn't exists
e.g. HOW does it plays the sound? which sandbox? (and about sandbox - see the SoundMixer link above),



Quoted

But this doesnt work if I use the action with "onloaded" !
which onloaded event - that one from the plugin?
has your plugin itself already started playing the sound when this event happens?

best regards,
Klaus
*smile* I meant swf with no xml, php file calls or others..

Yes, the onloaded event from the plugin: onloaded="stopallsounds(true)". The plugin'sound start and doesnt stop, the other sounds inetrface dont start at all!

Note; If I use the onloadcomplete event the plugin's sound start playing before it stops.

6

Tuesday, November 8th 2011, 1:09pm

Hi,

Quoted

*smile* I meant swf with no xml, php file calls or others..
that's not that easy - a swf can contain script code!

e.g. the krpano "onloaded" event will be called when the swf file itself was loaded,
but it doesn't and can't guarantee that the code inside the 'swf' has already started playing the sound!

best regards,
Klaus

7

Tuesday, November 8th 2011, 2:53pm

e.g. the krpano "onloaded" event will be called when the swf file itself was loaded,
but it doesn't and can't guarantee that the code inside the 'swf' has already started playing the sound!
Yes, the problem was there! ;-)

Now Resolved ! Thx