[Xerte] 2.x Double hit with onSoundComplete

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Aug 24 14:13:28 BST 2010


Just tried this:  you can set sounds up the native flash way

 

mySound = new Sound();

mySound.loadSound(FileLocation + 'sound.mp3');

 

and then control it using the sound class's native methods like
mySound.start();

 

J

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 24 August 2010 14:05
To: Xerte list
Subject: RE: [Xerte] 2.x Double hit with onSoundComplete

 

Iconid.reset() is less bytes.

________________________________

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

Iconid.sound.stop()

 

Believe it or not a sound icon is really a decision icon, to handle the
synched pages stuff.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 24 August 2010 13:55
To: Xerte list
Subject: RE: [Xerte] 2.x Double hit with onSoundComplete

 

That may be it.
I tried iconid.stop() and it didn't do booger.
So I hunted around and found reset()


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

It calls the sound's stop() method. Not sure if that trips the event or
not,

 

J

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 24 August 2010 13:46
To: Xerte list
Subject: RE: [Xerte] 2.x Double hit with onSoundComplete

 


I'm pretty sure the sounds were colliding after page turn.
Or at least if I blocked the page turn, I do not get a double hit.
Is it using reset() on the sound?

________________________________

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

Maybe because the sound is being killed when the page turns? There is
code in the engine that does that on each page turn: it dives the
content and stops sounds / videos and some other stuff.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 24 August 2010 12:13
To: Xerte list
Subject: RE: [Xerte] 2.x Double hit with onSoundComplete

 


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. 


_______________________________________________ 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. 


_______________________________________________ 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. 


_______________________________________________ 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/61083d3d/attachment.html


More information about the Xerte mailing list