[Extendflash] Anyway to get the length of a sound?
"Tore B. Jørgensen"
tore.jorgensen at atlantia.no
Thu Apr 27 09:57:56 BST 2006
David Crossman skrev:
>
> Was there ever an answer to this question? I’m running into the same need…
>
> Any way to get the length of a sound, whether through the SoundItem or
> possibly through frame properties after setting as stream?
>
A _very_ roundabout way... You can set the bitrate of mp3, and using
FLfile.getSize(fileURI) you can get the file size of the swf, so it
should be possible to change the bitrate, export the swf, find the
change in filesize which will be the change in size of the mp3,
calculate the size of the mp3 based on change in size and change in
bitrate, find the length in seconds by dividing the mp3 size on the
bitrate... as I said a very roundabout way which you must be desperate
to use.
More information about the Extendflash
mailing list