PDA

View Full Version : Having some trouble with loading, "preloading", and playing sound...



lorren.biffin
August 18th, 2006, 08:39 PM
Not sure whats going on here. I am completely novice so please excuse my code examples. Well, here goes...

Use the media player... (http://slicdigital.net/level3/)
Download Source... (http://slicdigital.net/level3/preloadandplay.fla)

Occasionally(not everytime, but enough to feel quirky) when i load the movie, the actionscript to preload the sound does not work. any suggestions?

also need to know how i would create a bar that says how much of the song has played. i assume that it would be similar to the preload bar(in theory) but dont know how to get the song length or how much of the song has played into a variable

lorren.biffin
August 19th, 2006, 10:27 AM
So i figured out what the problem was, but still have no idea how to solve it.

It seems that the movie doesnt have enough time to load the sound file before the loading script kicks in, so none of the mp3 info is sent to the text fields or the preload bar. anyone have any suggestions how to fix this?

lorren.biffin
August 19th, 2006, 09:24 PM
Just me again...

I think i've figured it out. The interval to start the load function was set too low.

I still need others to test it and see if it works with other ppl(fonts embeded ok, download time for tracks, etc..). Could you guys test it and see if it works?