• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Code Fix!

var frogSound:Sound = new Sound();
frogSound.loadSound("ribbit.mp3", false);
frogSound.onLoad = function()
{
    frogSound.start();
}

As with all other sounds, we need to create a sound object and then place a sound in it. The loadSound() method can point to a file on the Internet, like


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint