p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Flash (all versions) (http://p2p.wrox.com/forumdisplay.php?f=59)
-   -   Creating a Flash audio player (http://p2p.wrox.com/showthread.php?t=47153)

Dan7 August 30th, 2006 02:56 AM

Creating a Flash audio player
 
Does anyone know how I would go about creating a player similar to the one on http://www.tnawrestling.com/roster/index.html but with my own files?

Thanks.


harpua August 30th, 2006 09:33 AM

It's really pretty easy, if you break that one down into sections it's not so bad. First there is the design, this one makes it look more complicated than it actually is. Then there are the album titles and song listings, which activates it the Flash Sound class. Just look into Flash's sound class in flash help, and you will see what is happening in each step of this after you select a song.

Basically you .loadSound()
While loading use the .getBytesLoaded() and .getTotalBytes() to display this info
Then .onLoad() you can .start() playing
While it's playing use the .duration and .position to move the bar across
When the song is finished the .onSoundComplete event handler will be available.

There are some more functions available but those are the basics.


Peace
Mike
http://www.eclecticpixel.com

robprell December 15th, 2006 11:46 PM

Can you post action script for this?


jberg December 16th, 2006 01:37 PM

Chapter 19 of the book Beginning ActionScript 2 [ http://www.wrox.com/WileyCDA/WroxTit...764577689.html ] contains a comprehensive tutorial for creating a simple audio interface beginning on page 484.


All times are GMT -4. The time now is 03:48 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.