<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dave,<br>That's better than my method. I had followed the script that had the play() with an interaction with a onSoundComplete event that exited the interaction to implement wait. It appeared to work but took several icons.<br><br>Have a great day,<br>Kent<br><br><hr>From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Date: Sun, 10 Feb 2013 10:33:38 -0500<br>Subject: [Xerte] Re: Desktop - bypassing a sound based on variable<br><br>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir=ltr>
<div><br></div><div>But, you gave me an idea.</div><div><br></div><div>I've put the Sound icon directly on the flow line and preceded it with a script:</div><div><br></div><div>if blah</div><div><span style="font-size:10pt"> icon.nextSibling.attributes.play = 1;</span></div><div><span style="font-size:10pt"> icon.nextSibling.attributes.wait = 1;</span> </div><div>else </div><div><div><span style="font-size:10pt"> icon.nextSibling.attributes.play = 0;</span></div><div><span style="font-size:10pt"> icon.nextSibling.attributes.wait = 0;</span> </div></div><div>end</div><div><br></div><div><br></div><div>Using the procedure we talked about yesterday.</div><div>Altering the xml before the object is even created, so it instantiates with those properties.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><br><div><div id=ecxSkyDrivePlaceholder></div><hr id=ecxstopSpelling>From: kent_chesnut@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Date: Sun, 10 Feb 2013 08:06:50 -0600<br>Subject: [Xerte] Re: Desktop - bypassing a sound based on variable<br><br>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir=ltr>
Dave,<br><br>You probably already tried this... but just in case...<br><br>Can you set the play property of the sound to 0 and then use SoundID.play() in a subsequent script icon to play the sound if your condition is met?<br><br>Have a great day,<br>Kent<br><br><div><div id=ecxSkyDrivePlaceholder></div><hr id=ecxstopSpelling>From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Date: Sun, 10 Feb 2013 07:28:40 -0500<br>Subject: [Xerte] Desktop - bypassing a sound based on variable<br><br>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir=ltr>
<div><br></div>Julian, I know we went down this road once before, and can't remember the outcome.<div><div><br></div><div>In AW it was fairly common to use a Decision icon to say, enable/disable the playing of sound in a piece.</div><div><br></div><div>You hung the sound off the dec icon, then used a calculated path, 0 or 1.</div><div><span style="font-size:10pt">That worked because AW is one based, so the first path was 1.</span></div><div><span style="font-size:10pt">If you set 0, it bypassed the dec icon and continued down the flow line.</span></div><div><span style="font-size:10pt"><br></span></div><div><span style="font-size:10pt">So, what can I do with Xerte's 0 based dec icon?</span></div><div><span style="font-size:10pt">-1 does nothing, flow just stops at the dec icon.</span></div><div><span style="font-size:10pt"><br></span></div><div><span style="font-size:10pt">As a bit of a kludge, I found setting the repeat property to zero does what I want, but I can't get that property to accept a variable.</span></div><div>If I try to use a variable it just repeats endlessly.</div><div><br></div><div>Missing something or some other way to skin this cat?</div><div><br></div><div>Dave</div></div><style><!--
.ExternalClass .ecxshape
{;}
--></style><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{font-size:11.0pt;font-family:"Calibri","sans-serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass pre
{font-size:10.0pt;font-family:"Courier New";}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{font-size:8.0pt;font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxBalloonTextChar
{font-family:"Tahoma","sans-serif";}
.ExternalClass span.ecxEmailStyle19
{font-family:"Calibri","sans-serif";color:#244061;}
.ExternalClass span.ecxHTMLPreformattedChar
{font-family:Consolas;}
.ExternalClass span.ecxEmailStyle22
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
--></style> </div>
<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</div> </div>
<br><br>
<br>
<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</div> </div>
<br><br>
<br>
<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte </div></body>
</html>