Play stop not working on mouseLeave

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
GSA_DC
Posts: 35
Joined: Thu Nov 27, 2014 2:07 pm

Play stop not working on mouseLeave

Post by GSA_DC » Thu Nov 27, 2014 2:14 pm

Hi.

I'm teaching Livecode to my students and I've hit an anomaly. I was using 6.6.2 (commercial) to teach with and show examples. However students downloaded the latest Livecode Community 7.0. The same block of simple code behaves differently:

Code: Select all

on mouseEnter
   play audioClip "sound1"
   set the blendLevel of graphic "Oval" to 0
end mouseEnter

on mouseLeave
   play stop
   set the blendLevel of graphic "Oval" to 50
end mouseLeave
IN 6.6.2 the sound stops as it should. In 7.0 the sound appears to being re-triggered on mouseLeave. This is wrong.
Is this a known bug? Is there a new way to stop audioClips from playing other than using play stop? Please help - it's urgent as it's messing up their coursework submissions! Thanks.

Kind regards, Paul.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Play stop not working on mouseLeave

Post by LCNeil » Thu Nov 27, 2014 2:26 pm

Hi Paul,

This seems to have been an issue introduced in LiveCode 7.0. It has since been fixed in the latest RC version (7.0.1 RC2). You will be able to download this from here-

http://downloads.livecode.com/livecode

Kind Regards, 

Neil Roger 
-- 
LiveCode Support Team ~ http://www.livecode.com 
--

GSA_DC
Posts: 35
Joined: Thu Nov 27, 2014 2:07 pm

Re: Play stop not working on mouseLeave

Post by GSA_DC » Thu Nov 27, 2014 3:17 pm

Excellent! Thanks for the prompt reply - appreciated.

Post Reply