Is there such thing as gettotalframes() or getframesplayed()?

As the subject line says. Is thre a way i can track in the beginning how many frames a swf file has played and how many total frames there are. what i want to do is have a swf file contain a song, but somehow be able to track how much of the song has been played and how much is left and i want to be able to create a small bar that moves across. is there a function that will get me “the frames played” and “the total frames” in a swf?

There are indeed such properties, but they’re called _currentframe and _totalframes:


movieclip._currentframe
movieclip._totalframes

About your sound on the timeline: you’re way better off with the Sound object. Sound on the timeline is tough to handle. With the Sound object, you can use the position and duration properties to get the percent of the song that has played. It also has lots of methods to control the sound.

To learn more about the Sound object, visit www.kennybellew.com and the ActionScript Dictionary.

By the way, isn’t that text from DDD’s footer you’ve got in yours ?

oh hey thanks! yeah i was thinking about using sound objects…well i still might, but i have a jukebox and it preloades a song as the user clicks on the one they want…it seems harder, but i think i might do it, thanks…lol
DDD’s footer…i duno, i copied the idea, from someone, how a mask goes over, but the text? i have no idea. i’ve kinda held onto such phrases for a while, i duno if its original anymore…

if i preload mp3s dynamically, what if the file size is still too big, if i follow http://www.kennybellew.com/ preloading dynamic loaded mp3s…then how do i compress the song data? if it is loading the song directly?

If you are loading the song dynamically, it is no longer included in the movie library and will decrease the filesize of your movie a lot. That’s the strength of dynamic loading: the file is not included in the movie, but it being loaded into it at runtime.

If your filesize is still too big after loading sounds dynamically, then it hasn’t got anything to do with the sounds anymore.