<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>.hmmessage P {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style>
<meta content="MSHTML 6.00.6000.17093" name="GENERATOR">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body class="hmmessage" ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>one of the vaguaries of the Flash Sound object. I did work around it but can't remember how - I think by assuming that if stop was called, the position was actually 0, when in fact the Sound told me otherwise, so I kept track of it. The scrubber in those
situations doesn't reflect sound.position.</div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="divRpF342125" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> 06 February 2011 18:00<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Reset and sound<br>
</font><br>
</div>
<div></div>
<div><br>
I'm curious about the sound.position value.<br>
<br>
I'm using an onEnterFrame to update the position of an audio scrubber<br>
<br>
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.<br>
<br>
Is there a way on call of reset() to also force the position of 0 to be recognized?<br>
Or is the only way to reload the sound?<br>
<br>
I tried <br>
<br>
pause()<br>
reset()<br>
play(0)<br>
reset()<br>
pause()<br>
<br>
which does set the position to 0, but then the audio proceeds to play. (I'm also not sure why that's happening).<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
</body>
</html>