[Xerte] 2.x Double hit with onSoundComplete

Dave Burnett d_b_burnett at hotmail.com
Tue Aug 24 12:13:28 BST 2010



It is being called, then a templated page turn happens.

I think I may know what is happening, but I solved the original issue another way.
If you advanced the pages quickly enough, sounds were not happening when they should.
I figured it must be a collision (trying to play a sound that was still loaded/in progress.
Since I didn't have AWunloadSoundDriver handy, ;-) I used a reset() at the top of the play logic and that seems to have cured it.

But for the archives, I think it may not have been a double hit on the same event trap.
The template created identical event traps at the bottom of each page.
So I think on page turn, the page 1 trap fired, then on sound completion in page 2, it fired that one.
Though that still shouldn't happen, e.g. why would the page 1 trap fire if the sound wasn't complete?


Subject: RE: [Xerte] 2.x Double hit with onSoundComplete
Date: Tue, 24 Aug 2010 08:40:45 +0100
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
















How is the sound being stopped to trigger the two events? Just
playing to the end and then stopping? Or are you stopping it some other way?

 





From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett

Sent: 23 August 2010 22:33

To: Xerte list

Subject: [Xerte] 2.x Double hit with onSoundComplete





 

Anyone have any ideas why an onSoundComplete
event would be triggering twice?



Just a little beep when the user hits a button.

I get 1 beep, but my event catcher is triggering twice.



Dave






This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.





_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100824/065a031b/attachment.html


More information about the Xerte mailing list