[Extendflash] Anyway to get the length of a sound?

David Crossman dcrossman at parioonline.com
Thu Apr 27 11:36:39 BST 2006


In my case, I'm pulling data from other places and I'll just add a field in my database to hold audio length and automatically populate it using PHP. I was just hoping to avoid storing additional redundant data. The roundabout method sounds like a lot more work than its worth.

Thanks for the quick response!

David Crossman
Senior Programmer
PARIO, INC.

2451 Cumberland Pkwy
Suite 3489
Atlanta, GA  30339

P 770.436.8648 x105
F 678.990.3658

dcrossman at parioonline.com

PARIO, INC., an award-winning interactive communications, marketing and learning company based in Atlanta, Georgia, offers value-added, strategic solutions for the creative development and multi-channel delivery of rich media content through film, video, television, interactive CD/DVD, Internet/Intranet, eLearning and courseware.  PARIO, INC. is an 8(a), woman-owned, small disadvantaged business.

The information contained in this electronic message is privileged and confidential and may be protected by the Electronic Communications Privacy Act, 18 US Sections 2510-2521, and is intended solely for the use of the individual (s) or entity addressed.  The reader of this e-mail message is hereby notified that any dissemination, distribution, or copying of this communication is not authorized and is considered strictly prohibited unless explicitly provided for in the message content.  If you have received this communication in error, please notify us immediately by return e-mailing the sender.  Thank you.

> -----Original Message-----
> From: extendflash-bounces at flashguru.co.uk [mailto:extendflash-
> bounces at flashguru.co.uk] On Behalf Of "Tore B. Jørgensen"
> Sent: Thursday, April 27, 2006 2:58 AM
> To: extendflash at flashguru.co.uk
> Subject: Re: [Extendflash] Anyway to get the length of a sound?
> 
> 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.
> 
> _______________________________________________
> Extendflash mailing list
> Extendflash at flashguru.co.uk
> http://lists.flashguru.co.uk/mailman/listinfo/extendflash



More information about the Extendflash mailing list