Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help me please

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
I have this site that I cannot make slower...I wrote yesterday about this and have been at my computer all day. I just want to know how to load music into my site: I have to sample pieces. do i put them in another page? i am so lost and confused by the conflicting advice i read...
 
Sorry Dis... I've looked at your .fla and IMHO, it needs a major overhaul if you want everything to work as described!
Don't have much time to spend on it right now, I do have a day job! Will maybe have more time later tonight.

Meanwhile, if you want to experiment with your sound problem, I see 2 ways for you. Build a separate .swf with one of your music tracks, and name it sound1.swf, for example. Once done, simply add the following to one of your mucic button titles in your main movie:
on (press){
loadMovieNum ("sound1.swf", 1);
}
For this test, make sure you've laid down the whole lenght of the track in your sound movie, and if you so wish, that you added a gotoAndPlay(1) action on the last frame, if you want this track to loop. Also make sure the sound movie is in the same folder as your main movie.

The other method, I'll describe later, if you get this first one working.
I do have to get back to work!

Regards,
wink4.gif
ldnewbie
 
disfasia load the sound externaly..this will help alot with the original download of the main movie..take out all the sound files in the original..take each individual sound file and put them in there own swf..

so would be trac1.swf, trac2.swf, etc..in your main movie put these actions in the buttons that call the sound files..

on (press) {
loadMovieNum (" 1);
}

the red being the level that your loading each sound file to..always load each file to level one that way the next file called replaces the previous..that way you do not have to tracs playing at the same time..don't worry about the background of the loaded movies..they become invisible when there loaded onto the original..so you won't see anything..just your sound will play..

in your sound movies have the frames stretch as long as the sound file itself is..in the sound pallet have it loop 999 times that way it loops forever until changed..

once you get that we'll talk about streaming the sound..

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Have I posted something? Or am I just imagining things?

Regards,
wink4.gif
ldnewbie
 
Thanks for the help. I have the sounds in separate swf files. I still am not sure about how to 'skin down' these sound files, but I got them down to 80-100 kbytes each...

I do have one more question: as the sound files are seperate and somewhat slow to load, I would like to write an action that would have them automatically load (but not play) after the mail page has loaded, so that when they are called up, they will be 'ready' to play.

Is this possible?

Thanks again!

 
You can try to simply use the loadMovie action (without the on press action), in the first frame of your main movie, in the Frame Actions box. Although, I've had problems with laying down such actions if the main movie is a 1 frame movie (like your's), you might have more success. If not, make it a 10 frames main movie with your stop on the last frame, and try inserting the loadMovie actions in a keyframe on frame 5.
Remember, that if the user is faster than you, and goes directly to the music selection, most of them will still not have loaded yet.

Must I understand you've solved all your problems, and you don't need any more pointers?

Regards,

wink4.gif
ldnewbie
 
Yes, thank you so much for your help!

Best...
 
don't forget to load them all to different levels!.if you load them all at once in the frame actions..

i think old we posted the previous at the same time..because they pretty much say the same thing..scary..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
I do have one more question regarding the size of my sound files. What is the best way to lighten the load? I have my sound files around 88 - 100 kbytes....They are still slow to load.

Any ideas are greatly appreciated!

Regards.
 
I forgot to mention that my sound files are in .wav...I read that mp3 would be lighter...Is this so?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top