MP3 player preview time

R

rock

Hi,

I have an Flash MP3 player and full song mp3's.

I want to be able to preview them to play just a few seconds of the song
then stop.

In this script below can I have the song play for a certain amount of
seconds then stop?

Or would is there another way to achieve this?

Thanks

rock



<script language="javascript"><!--

function popupWindow(url) {


window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,

scrollbars=no,resizable=no,copyhistory=no,width=193,height=265,

screenX=0,screenY=0,top=300,left=450')

}

//--></script>
 
B

Bart Van der Donck

rock said:
I have an Flash MP3 player and full song mp3's.
I want to be able to preview them to play just a few seconds of the song
then stop.
In this script below can I have the song play for a certain amount of
seconds then stop?
<script language="javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status­=no,menubar=no,
scrollbars=no,resizable=no,copyhistory=no,width=193,height=265,
screenX=0,screenY=0,top=300,left=450')
}
//--></script>

Maybe you could load the swf-object into the popup-window, let the
object send some flag to the opener when it starts playing (or when
it's loaded), and finally repopulate the popup after X seconds with a
setTimeout-command from the opener.

A more robust strategy is probably to handle it in Flash' Actionscript
(load mp3, let it play X-seconds, stop).

Hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top