[Xerte] Re: Reset and sound

Dave Burnett d_b_burnett at hotmail.com
Mon Feb 7 11:14:48 GMT 2011



Yes.
I've got one working.


From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 7 Feb 2011 09:40:01 +0000
Subject: [Xerte] Re: Reset and sound



Is this because you want to build a scrubber for the sound control? From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 06 February 2011 18:01
To: Xerte list
Subject: [Xerte] Reset and sound 
I'm curious about the sound.position value.

I'm using an onEnterFrame to update the position of an audio scrubber

If I call reset(), the sound certainly starts playing from the beginning when I hit play, but until I invoke play(), sound.position reflects the position the audio was in when the reset() was called.

Is there a way on call of reset() to also force the position of 0 to be recognized?
Or is the only way to reload the sound?

I tried 

pause()
reset()
play(0)
reset()
pause()

which does set the position to 0, but then the audio proceeds to play. (I'm also not sure why that's happening).





 





  










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/20110207/53a25121/attachment.html>


More information about the Xerte mailing list