<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
fast forward/back and scrub bar?<br><br><br><hr id="stopSpelling">From: maryann@moberg.com<br>Date: Fri, 4 Feb 2011 13:39:49 -0500<br>To: xerte@lists.nottingham.ac.uk<br>Subject: [Xerte] Re: Problem looping sound controlled by script - Xerte 2 desktop<br><br>The calls are very simple and I'm working on a flash component to handle it. <br><br><div class="ecxgmail_quote">On Fri, Feb 4, 2011 at 12:46 PM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div>
I'm looking in the engine .fla trying to deconstruct the sound thingy.<br><br><br><hr>From: <a href="mailto:maryann@moberg.com">maryann@moberg.com</a><br>Date: Fri, 4 Feb 2011 12:28:31 -0500<div><div>
</div><div class="h5"><br>To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>Subject: [Xerte] Re: Problem looping sound controlled by script - Xerte 2 desktop<br><br>That gave me an idea - what about creating a little flash component that handles playing these troublesome sounds? It could have play and stop functions that get called on by a xerte button. The play function would load the mp3, and then handle onLoad as described in the documentation. Xerte wouldn't have to bother about anything except making the call.<br>
<br>This seems like a tidy solution to me. Is there anything I'm overlooking?<br><br><div>On Fri, Feb 4, 2011 at 12:02 PM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote style="padding-left: 1ex;">
<div>
I've gotten into the habit of fully qualified paths.<br><br>_level0.engine.fcommonPagesetup(arg);<br><br>If you have multiple functions and/or are using asfunctions as well, funny things happen, especially to the args[]<br>
<br> <br><br><br><br><hr>From: <a href="mailto:maryann@moberg.com">maryann@moberg.com</a><br>Date: Fri, 4 Feb 2011 11:56:31 -0500<div><div></div><div><br>To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] Re: Problem looping sound controlled by script - Xerte 2 desktop<br><br>Thanks for suggestion, Dave. We run all of our xerte rlo files from a flash application that plays in the browser. I've found that inFunc scripts work in preview, but don't when played in our flash wrapper. Didn't investigate because it was easier just to duplicate the code. Another layer of Flash sitting under the xerte engine confusing things? Now that I have a real reason, I think I'll put some time into figuring it out. <br>
<br>Tried to use the onLoad event on the sound icon but it never fired.<br><br>Tried putting the load call in one script and the play call in a separate script but that magic didn't work. <br><br>Tried setting the isStreaming arg of the loadSound call to true and that actually worked but then I lost looping which was the whole reason I started down this path.<br>
<br>hmmmm... I'll play around with this.<br>Thanks<br><br><div>On Fri, Feb 4, 2011 at 11:14 AM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote style="padding-left: 1ex;">
<div>
<SCR isFunc="1" name="fdoSound"><br><br>onLoad event<br><SCR>fdoSound(myargs);<br><br>??<br><br><hr>From: <a href="mailto:maryann@moberg.com">maryann@moberg.com</a><br>Date: Fri, 4 Feb 2011 11:01:40 -0500<br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><div><div></div><div><br>Subject: [Xerte] Re: Problem looping sound controlled by script - Xerte 2 desktop<br><br>
Thanks, Julian, you're absolutely right. <br><br>But now I'm trying to figure out how to implement this without a button for each task. When I read the flash documentation it's all about defining a named or anonymous function that is invoked onLoad, which we can't do in xerte, right? <br>
<br>
<br><div>On Fri, Feb 4, 2011 at 4:26 AM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br><blockquote style="padding-left: 1ex;">
<div lang="EN-GB"><div><span style="font-size: 11pt; color: rgb(31, 73, 125);">Is the sound loaded before you call start()? It might need to load before the method works. Try mocking up an interaction with a button to load the sound, a button to make it play, see if that works. In the engine I handle onLoad to control the autoPlay setting, so I think that’s the right approach.</span><br>
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><br><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p style="margin-left: 36pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> 04 February 2011 07:03<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: Problem looping sound controlled by script - Xerte 2 desktop</span></p></div><div><div></div><div><p style="margin-left: 36pt;">
</p><p style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;">Hi Julian,<br><br>Things just got weird using this technique to control sound. Haven't had time to investigate yet, but thought I'd ask in case the answer is as easy for you as the last one was.</p>
<div style="margin-left: 30pt;"><p style="margin-left: 36pt;">soundIcon.sound.stop(); <br>soundIcon.loadSound(FileLocation + 'mySoundFile.mp3');</p></div><div><div style="margin-left: 30pt;"><p style="margin-left: 36pt;">
soundIcon.sound.start(0,100);</p></div><p style="margin-left: 36pt;"> </p></div><p style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><br>Accessing the flash sound object with these calls works fine when I play the rlo file in preview mode. iI also works when I play it from a flash swf file that loads it with this:<br>
attachMovie('Xerte', 'myRLO', 0);<br><br>But if I publish the rlo and try to play it in a browser, or if I play my flash "wrapper" in a browser I don't hear these sound files. I do hear the other sounds in my rlo that I'm playing in the standard way.<br>
<br>Any ideas as to what's going on?<br><br>Thanks a million!<br>ma</p><div><p style="margin-left: 36pt;">On Tue, Feb 1, 2011 at 11:20 AM, Mary Ann Ahearn <<a href="mailto:maryann@moberg.com">maryann@moberg.com</a>> wrote:</p>
<p style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;">Indeed it is!<br>Thanks<br>ma</p><div><div><div><p style="margin-left: 36pt;">On Tue, Feb 1, 2011 at 10:56 AM, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
</div></div><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">
<div><div><div><div><p style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Easy.</span></p><p style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Access the underlying sound object, mySoundIcon.sound and control it directly with the Sound object’s methods</span></p>
<p style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">myIcon.sound.start(offset, loopCount);</span></p>
<p style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;">
<p style="margin-left: 72pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> 01 February 2011 15:53<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Problem looping sound controlled by script - Xerte 2 desktop</span></p></div><div><div><p style="margin-left: 72pt;">
</p><p style="margin-left: 72pt;">I was feeling smug enough about controlling sound via script yesterday to dare to post an answer to someone's question!! Ha! The gods don't like hubris.<br><br>
Today everything is different.<br><br>I've got a button that plays a sound when clicked. I'd like the sound to loop and the button to toggle it on and off<br><br>It seems to forget its loop value when I start controlling it via script.<br>
<br>mySoundIcon.play();<br><br>However if I just put the sound icon under a button icon and set it to play =1 and loop = 5, then the looping works and all is fine. I can even stop it and reset it without any problems. Just can't manage to play it from script more than one time.<br>
<br>Tried putting an onSoundComplete event to reset it and play it but it just went mad and looped very bizarrely without ever waiting to finish.<br><br>Then I tried the getSound route but can't seem to get the timing right so this always returns undefined.<br>
<br>Any ideas? I think I must be missing something very simple.<br><br>Thanks!<br>ma</p></div></div></div><p style="margin-left: 36pt;"> </p><p style="margin-left: 36pt;">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. </p>
<p style="margin-left: 36pt;">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. </p>
</div><p style="margin-left: 36pt;"> </p></div></div><p style="margin-left: 36pt;">_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></p><div><p style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;">
<br><br>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.<br>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br><br></p></div></blockquote></div><p style="margin-left: 36pt;"> </p></div><p style="margin-left: 36pt;"> </p>
</div></div></div></div><br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br></div></div>_______________________________________________
Xerte mailing list
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>
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. </div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br></div></div>_______________________________________________
Xerte mailing list
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>
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. </div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br></div></div>_______________________________________________
Xerte mailing list
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>
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. </div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
<br>_______________________________________________
Xerte mailing list
Xerte@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. </body>
</html>