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.

JPC

Beginner

  • "JPC" started this thread

Posts: 40

Location: Paris

Occupation: Photographies and media

  • Send private message

1

Monday, August 9th 2010, 11:47am

oncomplete

Hello could somebody help me to anderstand why the oncomplete is not working in this code


<plugin name="soundinterface" url="soundinterface.swf" onloaded="action(sound_on1)" loop="false" keep="false" volume="1" oncomplete="loadpano(biodiversite020105.xml,NULL,NULL,BLEND(1))"/>

<action name="sound_on1">
playsound(viel3,biodiversite02010data/graphics/sound/viel3b.mp3);"
</action>


Thank you


do somebody know a best way to begin to play some sound than with onloaded because it seems not easely to work two times, even if loop="false"

Thank you

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Monday, August 9th 2010, 1:08pm

Hi JPC,

Quoted

Hello could somebody help me to anderstand why the oncomplete is not working in this code
The oncomplete has to be set inside the playsound action not inside the plugin itself...
  • playsound(id, mp3file, loops*, oncomplete*);
    • plays a sound file
    • id = id/name of the sound (use "auto" for a automatic new id for every play)
    • mp3file = the filename/path of a sound file
    • loops = number of loops, 0=endless, default=1 (*optional)
    • oncomplete = action/event that will called on complete (*optional)
So your code could be:

Source code

1
2
3
4
5
<plugin name="soundinterface" url="soundinterface.swf" onloaded="action(sound_on1)" loop="false" keep="false" volume="1"/>

<action name="sound_on1">
playsound(viel3,biodiversite02010data/graphics/sound/viel3b.mp3,1,loadpano(biodiversite020105.xml,NULL,NULL,BLEND(1)));"
</action> 


SAlut.

JPC

Beginner

  • "JPC" started this thread

Posts: 40

Location: Paris

Occupation: Photographies and media

  • Send private message

3

Monday, August 23rd 2010, 8:45pm

Merci

Similar threads