Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 30th, 2006, 02:56 AM
Registered User
Join Date: Aug 2006
Location: , , Australia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?


  #2 (permalink)  
Old August 30th, 2006, 09:33 AM
Friend of Wrox
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts

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.

  #3 (permalink)  
Old December 15th, 2006, 11:46 PM
Friend of Wrox
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts

Can you post action script for this?

  #4 (permalink)  
Old December 16th, 2006, 01:37 PM
Registered User
Join Date: Dec 2006
Location: , , USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Media Player 11 Object in Access VBA LouG Access VBA 12 October 20th, 2008 10:12 AM
How create a flash music player method Flash (all versions) 1 July 25th, 2005 12:01 PM
Creating a Media player(mainley mp3 and wma) Apocolypse2005 Beginning VB 6 0 June 7th, 2005 11:50 AM
flash mp3 player scorpion_king Flash (all versions) 1 March 23rd, 2004 01:53 PM
mouse controlling in flash and creating cursors mrafaqi Flash (all versions) 1 October 13th, 2003 09:28 AM

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