A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loading mp3's dynamically

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    18

    loading mp3's dynamically

    hello,
    i have just been through kenny's tutorial on flashkit about the dynamic loading of mp3's.....which works fine. however, what i would like to do is have just the one button to load AND play the external sound as an event. the tutorial has a load button and a seperate play button.
    could anyone help me with the code please??
    thanks in anticipation.
    janice

  2. #2
    on (release) {
    firstSong = new Sound(firstSongMC);
    firstSong.loadSound("mp3s/blind.mp3",true);
    }

    This seems to work fine for me little mp3 player.

    Peace,
    Drop

  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    You need an empty mc to load it into. In this case it has an instance name of placeholder.

    on (press) {
    loadMovie ("music1.mp3", "_root.placeholder");
    mySound = new Sound();
    mySound.loadSound("music1.mp3", true);
    }

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center