Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…12cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
juliantenney committed Nov 19, 2010
1 parent 5be3631 commit 5e212ec
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 2 deletions.
Binary file modified XMLEngine.swf
Binary file not shown.
Binary file modified modules/xerte/engine/wizard.swf
Binary file not shown.
2 changes: 1 addition & 1 deletion modules/xerte/parent_templates/Nottingham/Nottingham.rlt
@@ -1 +1 @@
<LO description="A flexible template for creating interactive learning objects" targetFolder="Nottingham" version="1.0" styleSheet="templatePath + 'common/styles.css'" inputColour="0xFFFFCC" selectableText="1" templateData="FileLocation + 'template.xml'" name="Xerte Online Toolkit"> <SCR name="makePages"><![CDATA[//loop through the xml and insert a page of the right type for each page typeifc = icon.nextSibling;linkIndex = -1;if (templateData.learningObject[0].navigation != 'Linear'){ pgOffset = 2; newXML = new XML('<PG model="templatePath + \'models/menu.rlm\'"/>'); newChild = newXML.firstChild; newChild.attributes.title = 'Main Menu'; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; ifc.appendChild(newChild);} else { pgOffset = 1;}//custom interfaceif (templateData.learningObject[0].controller != undefined){ icon.nextSibling.attributes.swf = templateData.learningObject[0].controller; icon.nextSibling.attributes.visuals = 0;}//help fileif (templateData.learningObject[0].nfo != undefined){ icon.nextSibling.attributes.helpfile = templateData.learningObject[0].nfo;}//default text sizeif (templateData.learningObject[0].textSize != undefined){ STYLES.defaultSize = templateData.learningObject[0].textSize; STYLES.inputSize = templateData.learningObject[0].textSize;}for (i = 0; i < extXML.firstChild.childNodes.length; i++){ //build this file dynamically modName = extXML.firstChild.childNodes[i].nodeName; if (modName == 'xerteModel'){ newXML = new XML('<PG model="' + extXML.firstChild.childNodes[i].attributes.modelFile + '"/>'); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML('<PG model="templatePath + \'models/' + modName + '.rlm\'"/>'); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild);}]]></SCR> <IFC name="interface" title="My Learning Object" visuals="1"> <FW_ENT id="entryFrame" name="background"> <DIS initObject="{_alpha:15}" h="515" w="800" tabIndex="-1" id="bgImage" name="background" x="0" y="1" type="ext" url="{templateData.learningObject[0].background}"><![CDATA[]]></DIS> <SCR isFunc="1" name="navToPage"><![CDATA[for (i = 0; i < extXML.firstChild.childNodes.length; i++){ if (extXML.firstChild.childNodes[i].attributes.name == args[0]){ rootIcon.gotoPage(i); }}]]></SCR> <SCR name="setup"><![CDATA[rootIcon.loadIcon(expression(templateData.learningObject[0].ic, engine));if (templateData.learningObject[0].navigation == 'Linear'){ icon.nextSibling.firstChild.removeNode();} else { if (templateData.learningObject[0].navigation == 'Menu'){ rootIcon.hideControls(); rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 740; toc = rootIcon.tocBtn; } if (templateData.learningObject[0].navigation == 'Menu with Page Controls'){ rootIcon.hideControls(); rootIcon.backBtn._visible = true; rootIcon.backBtn._x = 640; rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 690; rootIcon.nextBtn._visible = true; rootIcon.nextBtn._x = 740; toc = rootIcon.tocBtn; }}]]></SCR> <INT id="myInt" name="narrationHandlers" perpetual="0"> <RES name="mainMenu" type="event" eventName="onRelease" icon="rootIcon.tocBtn" erase="1" exit="0"> <SCR name="gotoMenu"><![CDATA[rootIcon.gotoPage(0);]]></SCR> </RES> <RES name="showAudio" type="event" eventName="showAudio" icon="rootIcon" erase="1" exit="0"> <SND id="nar" controls="25,0,975" name="narration" type="ext" url="{narration}" play="0" loop="0" wait="0" /> <SCR name="setup"><![CDATA[nar._y = -14;nar._x = 0;nar._yscale = 80;nar._xscale = 80;nar.clear();nar.beginFill(STYLES.titleBarColour,100);nar.drawRect(22,0,130,20);]]></SCR> </RES> <RES name="killYoutubePlayer" type="event" eventName="onClosePage" icon="rootIcon" erase="1" exit="0"> <SCR name="hideNarration"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].destroy(); delete engine[ytID];}]]></SCR> </RES> <RES name="exitPreview" type="event" eventName="exitPreview" icon="rootIcon" erase="1" exit="0"> <SCR name="[Untitled]"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].stopVideo(); engine[ytID].destroy(); engine[ytID].removeMovieClip()); delete engine[ytID];}]]></SCR> </RES> <RES name="onInit" type="event" eventName="onInit" icon="rootIcon" erase="1" exit="0"> <SCR name="jump"><![CDATA[rootIcon.preloadMedia();if (templateData.learningObject[0].displayMode != undefined){ rootIcon.setDisplayMode(templateData.learningObject[0].displayMode);}if (linkIndex != -1){ rootIcon.gotoPage(linkIndex);}]]></SCR> </RES> </INT> </FW_ENT> </IFC> <BIN myLongVarName="A variable for tracking the user" name="Deleted Items" /> </LO>
<LO description="A flexible template for creating interactive learning objects" targetFolder="Nottingham" version="1.0" styleSheet="templatePath + 'common/styles.css'" inputColour="0xFFFFCC" selectableText="1" templateData="FileLocation + 'template.xml'" name="Xerte Online Toolkit"> <SCR name="makePages"><![CDATA[//loop through the xml and insert a page of the right type for each page typeifc = icon.nextSibling;linkIndex = -1;if (templateData.learningObject[0].navigation.indexOf('Menu') != -1 && templateData.learningObject[0].navigation != undefined ){ pgOffset = 2; newXML = new XML('<PG model="templatePath + \'models/menu.rlm\'"/>'); newChild = newXML.firstChild; newChild.attributes.title = 'Main Menu'; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; ifc.appendChild(newChild);} else { pgOffset = 1;}//custom interfaceif (templateData.learningObject[0].controller != undefined){ icon.nextSibling.attributes.swf = templateData.learningObject[0].controller; icon.nextSibling.attributes.visuals = 0;}//help fileif (templateData.learningObject[0].nfo != undefined){ icon.nextSibling.attributes.helpfile = templateData.learningObject[0].nfo;}//default text sizeif (templateData.learningObject[0].textSize != undefined){ STYLES.defaultSize = templateData.learningObject[0].textSize; STYLES.inputSize = templateData.learningObject[0].textSize;}for (i = 0; i < extXML.firstChild.childNodes.length; i++){ //build this file dynamically modName = extXML.firstChild.childNodes[i].nodeName; if (modName == 'xerteModel'){ newXML = new XML('<PG model="' + extXML.firstChild.childNodes[i].attributes.modelFile + '"/>'); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML('<PG model="templatePath + \'models/' + modName + '.rlm\'"/>'); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild);}]]></SCR> <IFC name="interface" title="My Learning Object" visuals="1"> <FW_ENT id="entryFrame" name="background"> <DIS initObject="{_alpha:15}" h="515" w="800" tabIndex="-1" id="bgImage" name="background" x="0" y="1" type="ext" url="{templateData.learningObject[0].background}"><![CDATA[]]></DIS> <SCR isFunc="1" name="navToPage"><![CDATA[for (i = 0; i < extXML.firstChild.childNodes.length; i++){ if (extXML.firstChild.childNodes[i].attributes.name == args[0]){ rootIcon.gotoPage(i); }}]]></SCR> <SCR name="setup"><![CDATA[rootIcon.loadIcon(expression(templateData.learningObject[0].ic, engine));if (templateData.learningObject[0].navigation.indexOf('Menu') != -1 || templateData.learningObject[0].navigation != undefined ){ icon.nextSibling.firstChild.removeNode(); } else { if (templateData.learningObject[0].navigation == 'Menu'){ rootIcon.hideControls(); rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 740; toc = rootIcon.tocBtn; } if (templateData.learningObject[0].navigation == 'Menu with Page Controls'){ rootIcon.hideControls(); rootIcon.backBtn._visible = true; rootIcon.backBtn._x = 640; rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 690; rootIcon.nextBtn._visible = true; rootIcon.nextBtn._x = 740; toc = rootIcon.tocBtn; }}]]></SCR> <INT id="myInt" name="narrationHandlers" perpetual="0"> <RES name="mainMenu" type="event" eventName="onRelease" icon="rootIcon.tocBtn" erase="1" exit="0"> <SCR name="gotoMenu"><![CDATA[rootIcon.gotoPage(0);]]></SCR> </RES> <RES name="showAudio" type="event" eventName="showAudio" icon="rootIcon" erase="1" exit="0"> <SND id="nar" controls="25,0,975" name="narration" type="ext" url="{narration}" play="1" loop="0" wait="0" /> <SCR name="setup"><![CDATA[nar._y = -14;nar._x = 0;nar._yscale = 80;nar._xscale = 80;nar.clear();nar.beginFill(STYLES.titleBarColour,100);nar.drawRect(22,0,130,20);]]></SCR> </RES> <RES name="killYoutubePlayer" type="event" eventName="onClosePage" icon="rootIcon" erase="1" exit="0"> <SCR name="hideNarration"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].destroy(); delete engine[ytID];}]]></SCR> </RES> <RES name="exitPreview" type="event" eventName="exitPreview" icon="rootIcon" erase="1" exit="0"> <SCR name="[Untitled]"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].stopVideo(); engine[ytID].destroy(); engine[ytID].removeMovieClip()); delete engine[ytID];}]]></SCR> </RES> <RES name="onInit" type="event" eventName="onInit" icon="rootIcon" erase="1" exit="0"> <SCR name="jump"><![CDATA[rootIcon.preloadMedia();if (templateData.learningObject[0].displayMode != undefined){ rootIcon.setDisplayMode(templateData.learningObject[0].displayMode);}if (linkIndex != -1){ rootIcon.gotoPage(linkIndex);}]]></SCR> </RES> </INT> </FW_ENT> </IFC> <BIN myLongVarName="A variable for tracking the user" name="Deleted Items" /> </LO>
Expand Down
59 changes: 59 additions & 0 deletions modules/xerte/parent_templates/Nottingham/data.xwd
Expand Up @@ -28,13 +28,15 @@
<dragDropLabel><![CDATA[<dragDropLabel name="Enter Page Title" text="Enter text for the page here" url="Select an Image" align="Left" highlightColour="0xFFFF00" tip="Enter a tooltip for the image"/>]]></dragDropLabel>

<dialog><![CDATA[<dialog name="Enter Page Title" text="Enter text for the page here" attempts="2"/>]]></dialog>
<modelAnswer><![CDATA[<modelAnswer name="Enter Page Title" text="Enter text for the page here" prompt="Enter prompt here" feedback="Enter feedback here" panelWidth="Medium" align="left"/>]]></modelAnswer>

<categories><![CDATA[<categories name="Enter Page Title" text="Enter text for the page here"/>]]></categories>
<gapFill><![CDATA[<gapFill name="Enter Page Title" text="Enter text for the page here" passage="Enter interactive text here. To mark words for the exercise select the word using the mouse and right-click, choosing 'mark word' from the menu." interactivity="Drag Drop" feedback="Enter feedback here" panelWidth="Medium"/>]]></gapFill>
<timeline><![CDATA[<timeline name="Enter Page Title" text="Enter text for the page here" interactivity="Timeline" feedback="Enter feedback here"/>]]></timeline>
<annotatedDiagram><![CDATA[<annotatedDiagram name="Enter Page Title" text="Enter text for the page here" url="Select an Image" tip="Enter a tooltip for the image" colour="0xFFFF00" shape="None"/>]]></annotatedDiagram>
<customHotspots><![CDATA[<customHotspots name="Enter Page Title" text="Enter text for the page here" highlightColour="0xFFFF00" lineWidth="1" interactivity="Hotspots" showShapes="true">CDATA</customHotspots>]]></customHotspots>
<hotspotImage><![CDATA[<hotspotImage name="Enter Page Title" text="Enter text for the page here" url="Select an Image" interactivity="Show Me" highlight="false" hicol="0xFFFF00" align="Left" tip="Enter a tooltip for the image"/>]]></hotspotImage>
<buttonSequence><![CDATA[<buttonSequence name="Enter page Title" text="Enter Text for the page" intro="Enter Introduction here" align="Left" panelWidth="Medium"/>]]></buttonSequence>
<mcq><![CDATA[<mcq name="Enter Page Title" instruction="Enter Instruction" prompt="Enter a Prompt" type="Single Answer" align="Left" panelWidth="Medium"/>]]></mcq>

<list><![CDATA[<list name="Enter Page Title" text="Enter text for the page here"/>]]></list>
Expand All @@ -52,6 +54,7 @@

<links><![CDATA[<links name="Enter Page Title" text="Enter Page Text" cols="3" height="80"/>]]></links>
<xerteModel><![CDATA[<xerteModel name="Enter Page Title" modelFile="Select a Model"/>]]></xerteModel>
<raptivity><![CDATA[<raptivity name="Enter Page Title" url="Select a Raptivity SWF File"/>]]></raptivity>
<captivate><![CDATA[<captivate name="Enter Page Title" url="Select a Captivate SWF File"/>]]></captivate>
<jing><![CDATA[<jing name="Enter Page Title" url="Select a Jing SWF File"/>]]></jing>
<iSpring><![CDATA[<iSpring name="Enter Page Title" url="Select an iSpring Movie" version="Pro"/>]]></iSpring>
Expand Down Expand Up @@ -79,6 +82,8 @@

</learningObject>



<!--BUTTON NAVIGATOR--------------------------------------------------------------------->
<buttonNav menu="Navigators" menuItem="Button Navigator" icon="icButtonBar" remove="true" thumb="thumbs/butNav.jpg" hint="Presents a series of pages of related text and graphical content controlled using a navigation bar.">
<name type="TextInput" label="Page Title"/>
Expand Down Expand Up @@ -109,6 +114,23 @@

</morphImages>

<!--MODEL ANSWER INTERACTION--------------------------------------------------------------->
<modelAnswer menu="Interactivity" menuItem="Model Answer" icon="icComment" remove="true" thumb="thumbs/model.jpg" hint="A text entry interation, with feedback">

<name type="TextInput" label="Page Title"/>
<text type="TextArea" height="100" label="Text"/>
<prompt type="TextArea" height="100" label="Text"/>

<feedback type="TextArea" height="100" label="Feedback"/>
<panelWidth type="ComboBox" label="Panel Width" options="Small,Medium,Large,Full" width="100"/>
<align type="ComboBox" label="Align Text" options="Left,Right" width="100"/>

<narration type="media" label="Narration" optional="true"/>
<image optional="true" type="media" label="Image"/>
</modelAnswer>




<!--SLIDESHOW------------------------------------------------------------------------------>
<slideshow menu="Navigators" menuItem="Slideshow" icon="icPages" remove="true" thumb="thumbs/slideNav.jpg" hint="Presents a sequence of pages of related text and graphical content navigated with two arrow controls." sortChildren="true">
Expand Down Expand Up @@ -297,6 +319,27 @@

</buttonQuestion>


<buttonSequence menu="Interactivity" menuItem="Button Sequence" icon="icButtons" remove="true" thumb="thumbs/buttonSequence.jpg" hint="Presents a sequence of button interactions with text">
<name type="TextInput" label="Page Title"/>
<text type="TextArea" height="200" label="Text"/>
<intro type="TextArea" height="100" label="Introduction"/>
<panelWidth type="ComboBox" label="Panel Width" options="Small,Medium,Large,Full" width="100"/>
<align type="ComboBox" label="Align Text" options="Left,Right" width="100"/>

<newNodes>
<button><![CDATA[<button name="name" text="Feedback"/>]]></button>
</newNodes>

</buttonSequence>


<button menuItem="Button" icon="icBulletBlue" remove="true">
<name type="TextInput" label="Button Label"/>
<text type="TextArea" height="250" label="Feedback"/>
</button>



<!--MCQ PAGE-------------------------------------------------------------------------->
<mcq menu="Interactivity" menuItem="Multiple Choice Question" icon="icComments" remove="true" thumb="thumbs/mcq.jpg" hint="Poses an multiple answer question with multiple options. Create simple true - false questions, or more complex questions with multiple correct answers.">
Expand Down Expand Up @@ -539,6 +582,12 @@
<size type="ComboBox" label="Text Size" options="20,24,30,36,40,48,70" width="100"/>

<narration type="media" label="Narration" optional="true"/>
<bgImage type="media" label="Background Image" optional="true"/>
<bgImageAlpha type="NumericStepper" min="10" max="100" step="10" label="Background Alpha" optional="true"/>
<titleVAlign label="Title Vertical Align" type="ComboBox" width="120" options="Top,Middle,Bottom" data="20,200,400" optional="true"/>
<titleHAlign label="Title Horizontal Align" type="ComboBox" width="120" options="Left,Centre,Right" data="left,center,right" optional="true"/>
<titleTextColour label="Title Text Colour" type="ColourPicker" optional="true"/>


</title>

Expand Down Expand Up @@ -689,6 +738,16 @@

</captivate>

<!--RAPTIVITY-------------------------------------------------------------------------->
<raptivity menu="Media" menuItem="Raptivity SWF" icon="icRaptivity" remove="true" thumb="thumbs/raptivity.jpg" hint="A page for incorporating Raptivity swfs.">

<name type="TextInput" label="Page Title"/>
<url type="media" label="Raptivity SWF File"/>

<narration type="media" label="Narration" optional="true"/>

</raptivity>


<!--JING-------------------------------------------------------------------------->
<jing menu="Media" menuItem="Jing Movie" icon="icLightbulb" remove="true" thumb="thumbs/jing.jpg" hint="A page for incorporating Jing movies. Jing provides a convenient - and free - way of displaying screen captures in your presentation.">
Expand Down

0 comments on commit 5e212ec

Please sign in to comment.