dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sound Loops, best way to have them load

  1. #1

    Sound Loops, best way to have them load

    What is the best way to have a long loop (more than 10 seconds long) load and play in a flash movie?

    Thanks...

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    I just experimented with this a couple days ago. First you have an mp3 in the same folder as the movie. Then, make an empty movie clip and put an instance on the stage. Then, in the first frame of an actions layer, add this as a frame action:

    this.onEnterFrame ;
    loadMovie ("music2.mp3", "_root.placeholder");
    mySound = new Sound();
    mySound.loadSound("music2.mp3", true);

    This streams the mp3, there is absolutely no load time at all. I have loaded sound loops of almost 400K with no starting delay at all.

  3. #3
    Thanks... I'll save this info... I have a project coming up that may require nice music loop.... thanks again!

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