SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    OO JS and SoundManager2

    I will be the first to admit, I don't know much about JS and am just starting to wrap my mind around object oriented js.

    I have this small bit of code that has been giving me problems for days.

    playlistItems[numItems-1] = soundManager.createSound({
    id : songId,
    url : $(this).attr('href'),
    whileloading : player.whileloading,
    onfinish: next
    });


    "next" is a function on the same object that playlistItems is defined on, but it doesn't ever seem to fire. I tried this.next as well, but it just gives me a runtime error....

    Please help.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,682
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    On the SoundManager2 documentation page I see that there's one called playNextSound
    Would that happen to be what you're after?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •