• Hi,

    there is an "oncomplete" call for the sound interface actions:

    Quote
    • 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)

    e.g.

    Code
    playsound(auto, track1.mp3, 1, playsound(auto, track2.mp3) );

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!