PDA

View Full Version : dynamic music



riveroaks
January 4th, 2004, 12:36 AM
where on this site or another site can I find a good in dept tutorial or tutorials on control over music and sound IE loading, playing, and so on....I know the basics but im trying to make a player with multiple tracks and songs that are too big to just place in the flash movie so i'll have to load on the fly and a tutorial would really help with that.

crewman747
January 4th, 2004, 01:08 AM
does this help http://www.kirupa.com/developer/actionscript/sound.htm

and also this

http://www.kirupa.com/developer/mx/loading.htm

ScriptFlipper
January 4th, 2004, 07:16 AM
You might also want to check this thread out:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=40757&highlight=dynamic+mp3

excellent voets... :)

Voetsjoeba
January 4th, 2004, 08:34 AM
Thank you :)

riveroaks
January 4th, 2004, 10:58 AM
thanks guys, those tutorials really helped....I think I can do all that I set out to now.

ScriptFlipper
January 4th, 2004, 11:05 AM
You're welcome!

riveroaks
January 4th, 2004, 12:58 PM
if I export a movie clip for actionscript access does the movieclip still have to load before the main movie is played?

and also in Voetsjoeba's code, why is ref used in place of this? I don't understand what it achieves. Was it done as a personal preference or for referencing reasons?

riveroaks
January 4th, 2004, 10:01 PM
does anyone see a problem with this?



MusicPlayer.prototype.LoadTrack = function () {
this.Destination = "Sounds/StarWars.mp3";
this.Music.loadSound(this.Destination,FALSE);
loaderMC = createEmptyMovieClip("loader",2);
loaderMC.onEnterFrame = function () {
if (this.Music.getBytesTotal() == this.Music.getBytesLoaded()) {
TextName.text = TrackArray[TrackNum];
this.Music.start();
delete loaderMC;
}else{
var PercentLoaded = Math.round(Music.getBytesTotal / Music.getBytesLoaded
* 100);
}
}
}


actually id guess there is more than one...I just don't see them....I keep entering areas of actionscript I've never worked with before.

ez_stylin
January 30th, 2004, 02:07 PM
what about other file types... like *.wma?