Play and pause audio. Audio Stops when I mouse over a button

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
TodayIsTheDay
Posts: 56
Joined: Sat Jun 20, 2009 2:41 pm

Play and pause audio. Audio Stops when I mouse over a button

Post by TodayIsTheDay » Sat Oct 03, 2009 6:28 pm

I have two questions relating to audio...

1. I have an audio clip that plays on stackopen. It plays just fine. I want to add a icon to pause and play the audio. I tried using a radio button with this but it doesn't work:

Code: Select all

on mouseUp
   if the highlight of me is true then pause audioclip "MainPage.wav" 
end mouseUp
2. I have several buttons on the page. When I mouse over or click any of them the background audio stops.
( I do have a button sound that plays when you mouse over)

I was reading where you have to use the player control to accomplish this but that raises more questions for me...

What if the person doesn't have quicktime installed?

Do I still import the audio as control to use it with the player?

How can I play the audio on stackopen using the player?

Thanks!

Post Reply