locked
How to make an infinite sound loop RRS feed

  • Question

  • Hi All can u plz help me... i have a 9 second long sound loop.. i want to use this loop in my silverlight presentation (using blend2), how can i make it play continiously?? is there any option to repeat the sound??
    Friday, November 16, 2007 1:53 AM

Answers

  • check when the medialelement has ended.
    Create an AddEventListener("MediaEnded", "MySoundEndedFunction")

    then create the MySoundEndedFunction function and check.

    function MySoundEndedFunction(sender, args)
    {
    if (sender.findName("mysound").MediaEnded)
    {
     sender.findName("mysound").play();
    }
    }

    something like that.

    Sunday, November 18, 2007 10:47 AM