Click to See Complete Forum and Search --> : php flash streaming....


mahfooz
08-17-2008, 02:26 AM
HI!

how can i develop a page such like http://www.soundrangers.com/category-results.cfm?storeid=1&cat_id=0055

when i mouse over on play file it auomatically play that audio file.......

if there is any tutorail or script, plz let me know that.........

thanks in advance

sphoenixee
08-17-2008, 05:32 PM
I don't know how familiar you are with AS, but general steps are these (I assume you're using AS3):

Use addEventListener to register for MouseEvent.ROLL_OVER (or CLICK, etc. whatever you want to use) with the buttons.

Have the function call an URLLoader or HTTPService for the sound file. You don't need PHP to do this, although, you might want to use PHP to control access.

Once the sound has loaded (use Event.COMPLETE), call another function to use the Sound object to play the sound, e.g attach the the resource you got back from URLLoader to a channel then play the channel.