how to pause a song??? please help

Jon jbondy at sover.net
Wed Jul 13 20:03:13 EDT 2005


Ban:

Feel free to contact me off list if you want to pursue this just between 
the two of us.

You could take JLBPlayer and make the following changes to do what you want:

1) make the stack/window taller;
2) put nine buttons or fields on the taller window
3) create a MouseUp handler for each button.  Each handler plays one of 
the nine audio files, using the same code that I use to load and play audio.

:)

Jon

Ban Nguyen wrote:

>
>
>  
>
>>Hello,
>>
>>I've been working on creating a pause button to stop an audio and
>>clicking the button again to play the audio where it was stopped (not
>>the beginning)
>>
>>I am using this code for pause button:
>>
>>on mouseUp
>>   play pause audioClip "my clip"
>>end mouseUp
>>
>>It stops for 1 second and play at the beginning. Anyone knows how to
>>    
>>
>set
>  
>
>>it so it will play again where it was stopped.  Thank you.
>>    
>>
>
>------------------
>
>I uploaded my sample Player exactly for people like you!  There is a 
>Pause button: just see how I coded it!  If you have problems finding the
>
>stack, just let me know, off the list, and I'll help you find it!
>
>-------------------------------
>
>I did not use player object at the beginning so cannot use this code:
>....
>start player "myPlayer"
>stop player "myPlayer"
>....
>
>I use "play" command
>
>So I don't know what to do now
>
>I want to have a list of songs (9 songs) displayed on the scrollList so
>user can select which song is played.  Is there anyway that I can use
>JLBPlayer to do this.  I want to play .wav file
>
>JLBplayer only plays mp3?
>
>thanks
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>  
>



More information about the Use-livecode mailing list