all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

loading sounds??



loading sounds?? Ineedsleep
6/25/2005 11:58:26 PM
flash actionscript: I have a movie that gets pre loaded this works fine no probs at all but when I
have sounds in I dont want them to be loaded in the begginning as this greatly
increases the amount of time needed to preload the movie but have them loaded
on demand

I kow it is def possible Ive seen it all over and would really heelp!!!


Re: loading sounds?? El Jay Kay
6/26/2005 12:00:00 AM
Hi -
Just put the .mp3 in the same directory as your flash/html and try:
//on mn. t-line -
var myBeat = new Sound();
myBeat.loadSound("niceBeat.mp3", true); //where true isStreaming, false is
Event
myMusic_btn.onPress=function(){
myBeat.start();
}

Hope that helps,
El
Re: loading sounds?? Ineedsleep
6/26/2005 11:24:24 AM
thats what I need, but when I add that code the sound doesnt play?

Re: loading sounds?? Ineedsleep
6/26/2005 12:01:36 PM
ok so I did that and now the sound flips out and goes nuts??

what is the prob here!??

AddThis Social Bookmark Button