This content has been marked as final. Show 5 replies
can you clarify this line?
mySongPosition = song.position/1000;
what kind of object is song? is it a movieclip?
song is a Sound object, and position gives back the exact position in the song.. it is usefull for the pause button as well...
is song always your sound object? num is not being used so if it's needed to define your sound object, you need to correct that. also, i don't see where totalSongTime is defined.
song is always a sound object...
the code is a function from a bigger code,
var totalSongTime:Number = parseInt(songTime);
this is the definition for totalSongTime, may have been cut out from my first post, the songs are loaded through XML file into arrays, and thats where the num comes into place, i will attach the whole code just in case it helps you...
you're streaming your sound and that will cause problems when trying to retrieve your sound objects properties before loading is complete.