<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags" xmlns:ns0 =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Calibri;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
A:link {
        mso-style-priority: 99
}
SPAN.MSOHYPERLINK {
        mso-style-priority: 99
}
A:visited {
        mso-style-priority: 99
}
SPAN.MSOHYPERLINKFOLLOWED {
        mso-style-priority: 99
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: #1f497d; FONT-FAMILY: Calibri; mso-style-type: personal
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2>Check the help file for properties and methods of icons.
For example, rootIcon.currentPage gives the page number; rootIcon.pages.length
gives the number of pages. It's in the 'scripting reference' bit. You'll find
some things are named after their counterparts in authorware. Remember though,
that Xerte is not authorware, and I didn't set out to recreate it - it's just
very similar in some respects, and quite different in
others.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2>The scripting is basically javascript / actionscript so any
reference on those will be useful.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2>//run a loop</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2>for (i = 0; i< number; i++){</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2> debug(i);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=260465107-18062008><FONT face=Arial
color=#0000ff size=2>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=260465107-18062008></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>/<SPAN
class=260465107-18062008>/conditionals</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN
class=260465107-18062008></SPAN></FONT></FONT></FONT><SPAN
class=260465107-18062008></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2>i<SPAN class=260465107-18062008>f (something ==
somethingelse){</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN
class=260465107-18062008></SPAN></FONT></FONT></FONT><SPAN
class=260465107-18062008></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2> <SPAN class=260465107-18062008>
debug("Success");</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN
class=260465107-18062008></SPAN></FONT></FONT></FONT><SPAN
class=260465107-18062008></SPAN><FONT face=Arial color=#0000ff
size=2>}</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>There
is no support for the function or var keywords. You can create 'script
functions' very similar to authorware, but they're not really true functions,
more like an old BASIC subroutine. See the help.</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>You
can create objects:</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2>myObject = new Object();</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>and
then set properties</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2>myObject.name = "julian";</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>You
can create xml</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>myXML
= new XML('<node attrib="value">');</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>and
lots of other things you couldn't do in authorware easily.</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>Think
of the scripting language as very lightweight - for more hardcore scripting /
programming, you can create components in Flash and load them up. Any swfs you
load should be AS2.0 / FP8</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff size=2>Fire
away with the questions as they come up,</FONT></SPAN></DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=260465107-18062008><FONT face=Arial color=#0000ff
size=2>J</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Paul Beckwith,
AC&S Ltd<BR><B>Sent:</B> 18 June 2008 08:47<BR><B>To:</B>
knowledgeware@kccsoft.com; 'Xerte discussion list'<BR><B>Subject:</B> RE:
[Xerte] Making conditional itineraries with Xerte<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi Ron,
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Here is the
ActionScript 2.0 reference: <A
href="http://flash-reference.icod.de/">http://flash-reference.icod.de/</A><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">If you want to view the
contents of a variable, you can use debug(myvariable); anywhere after the
variable has been initialized. (make sure you only have one instance of Xerte
running when you use the debug function) This is one way of doing it which is
very handy when writing code.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hope this helps,
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Paul<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B><st1:PersonName
w:st="on">ron@kccsoft.com</st1:PersonName><BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> 17 June 2008 19:39<BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> '<st1:PersonName w:st="on">Xerte
discussion list</st1:PersonName>'<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Xerte] Making conditional
itineraries with Xerte</SPAN></FONT><SPAN
lang=EN-US><o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri">If I can jump in
here I have a question about paging.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri">Is there a place
(which I may have not discovered yet) where I can see the internal variables
Xerte is tracking? For instance the ‘CurrentPageNum’ var in AW. I’d like my
paging to track the ‘CurrentPageNum’ in Xerte and when ‘CurrentPageNum’ =
‘PageCount@”XerteFrameworkIcon”’ to go back to the menu page. Any example of how
to do that?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri">Also – I
understand Xerte uses Actionscript 1 (which is great, I have no desire to learn
the latest versions) – any suggestion on the best reference to AS1 for a
relative beginner?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri">Thanks<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri">RonM<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN lang=EN-US
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Tenney Julian<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, June 17, 2008 3:48
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName
w:st="on">Xerte discussion list</st1:PersonName><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Xerte] Making conditional
itineraries with Xerte<o:p></o:p></SPAN></FONT></P></DIV></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Hi,</SPAN></FONT><SPAN
lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">There isn't currently a
template for doing such an interaction, so you'd have to build one. How complex
that is really depends on how complex you want to make the scenario. If it's as
simple as presenting a stimulus and have the user select from a list of options,
and then present feedback in the form of text with perhaps optional images, it
would be quite easy.</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">It would also be easy
to sequence a number of these pages together, thus creating a linear sequence of
essentially multiple choice questions.</SPAN></FONT><SPAN
lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Take a look at the
pageTemplate.xtp in the [xerte]/wizards folder. It has a number of page types,
one of which is multiple choice question. You could adapt that, or perhaps it
works just fine. To create a project from this file, double click the xtp file.
Xerte will make the new project and open it (sometimes it doesn't open - just
double click the rltfile in the folder you created the project in if this
happens).</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Is the scenario you
want to support as simple as that? If it gets more complex (i.e. if a and b but
not c then go to page x, else if a not b or c then goto page y else if not a or
b and c then goto page z) then you hit two problems: the code is more complex,
and the template editor gets more complex too. I'd highly recommend keeping it
simple.</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">HTH,</SPAN></FONT><SPAN
lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">J</SPAN></FONT><SPAN
lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>