<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR><o:SmartTagType 
name="country-region" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="Street" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="address" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Verdana;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
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: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2>My own preferred way of doing this is to set a property on 
the icons themselves, rather than access the XML directly. If you set up a load 
of graphics, you can loop over them and set additional properties such as 
'initX' or 'initY':</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2>myIcon.initX = myIcon._x;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2>then it becomes much simpler to replace 
it:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=812141908-02062008><FONT face=Arial 
color=#0000ff size=2>myIcon.animate(myIcon.initX, 
myIcon.initY,10,'linearTween');</FONT></SPAN></DIV><BR>
<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&amp;S Ltd<BR><B>Sent:</B> 29 May 2008 16:20<BR><B>To:</B> 'Xerte discussion 
list'<BR><B>Subject:</B> [Xerte] Reading X,Y<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Am trying to send an item back to 
it&#8217;s original x &amp;y. Does anybody know of a way of reading the x&amp;y from 
the XML file through script?</SPAN></FONT> <o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">The first line works but is hard coded, we want to 
extract the initial post position of the object just dropped so we can return it 
to its start position. Second line doesn&#8217;t work&#8230;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">if(blnTargetFree==false){<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">//all targets are full, take 
action<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">//mf1.objectDropped.animate(100,100,20,'linearTween');<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">mf1.objectDropped.animate(mf1.objectDropped.XMLNode.attributes.x,mf1.objectDropped.XMLNode.attributes.y,20,'linearTween');<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<TABLE class=MsoNormalTable style="WIDTH: 450pt" height=80 cellSpacing=0 
cellPadding=0 width=600 border=0>
  <TBODY>
  <TR>
    <TD 
    style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm">
      <TABLE class=MsoNormalTable style="WIDTH: 450pt" height="100%" 
      cellSpacing=0 cellPadding=0 width=600 align=right border=0>
        <TBODY>
        <TR>
          <TD 
          style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm">
            <TABLE class=MsoNormalTable 
            style="BORDER-RIGHT: #666666 1pt solid; BORDER-TOP: #666666 1pt solid; BORDER-LEFT: #666666 1pt solid; WIDTH: 450pt; BORDER-BOTTOM: #666666 1pt solid" 
            cellSpacing=0 cellPadding=0 width=600 border=1>
              <TBODY>
              <TR style="HEIGHT: 0.75pt" height=1>
                <TD 
                style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0.75pt; BORDER-TOP: medium none; PADDING-LEFT: 0.75pt; BACKGROUND: #003366; PADDING-BOTTOM: 0.75pt; BORDER-LEFT: medium none; WIDTH: 100%; PADDING-TOP: 0.75pt; BORDER-BOTTOM: medium none; HEIGHT: 0.75pt" 
                width="100%" bgColor=#003366 height=1>
                  <TABLE class=MsoNormalTable style="WIDTH: 100%" cellSpacing=0 
                  cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD 
                      style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 3.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
                        <P class=MsoNormal><FONT face=Verdana color=white 
                        size=2><SPAN 
                        style="FONT-SIZE: 10pt; COLOR: white; FONT-FAMILY: Verdana">Aerospace 
                        Consulting &amp; Services 
                        Ltd<o:p></o:p></SPAN></FONT></P></TD>
                      <TD 
                      style="PADDING-RIGHT: 3.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
                        <P class=MsoNormal style="TEXT-ALIGN: right" 
                        align=right><FONT face=Verdana color=white size=1><SPAN 
                        style="FONT-SIZE: 7pt; COLOR: white; FONT-FAMILY: Verdana"><A 
                        href="http://www.acns-gmbh.com/" target=_blank><FONT 
                        color=white><SPAN 
                        style="COLOR: white; TEXT-DECORATION: none">Engineering, 
                        Training, 
                        Consultancy</SPAN></FONT></A><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE>
                  <P class=MsoNormal><FONT face="Times New Roman" size=1><SPAN 
                  style="FONT-SIZE: 1pt"><o:p></o:p></SPAN></FONT></P></TD>
                <TD 
                style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0.75pt; BORDER-TOP: medium none; PADDING-LEFT: 0.75pt; BACKGROUND: #003366; PADDING-BOTTOM: 0.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0.75pt; BORDER-BOTTOM: medium none; HEIGHT: 0.75pt" 
                bgColor=#003366 height=1>
                  <P class=MsoNormal><FONT face="Times New Roman" size=1><SPAN 
                  style="FONT-SIZE: 1pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></TD></TR>
              <TR>
                <TD 
                style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0.75pt; BORDER-TOP: medium none; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0.75pt; BORDER-BOTTOM: medium none" 
                colSpan=2>
                  <TABLE class=MsoNormalTable style="WIDTH: 100%" height="100%" 
                  cellPadding=0 width="100%" align=right border=0>
                    <TBODY>
                    <TR style="HEIGHT: 0.75pt" height=1>
                      <TD 
                      style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 3pt; PADDING-BOTTOM: 3pt; PADDING-TOP: 0.75pt; HEIGHT: 0.75pt" 
                      vAlign=top height=1>
                        <P class=MsoNormal><B><FONT face=Verdana color=#003366 
                        size=1><SPAN 
                        style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana">Paul 
                        Beckwith</SPAN></FONT></B><FONT face=Verdana 
                        color=#003366 size=1><SPAN 
                        style="FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana"><BR><I><SPAN 
                        style="FONT-STYLE: italic">Multimedia 
                        Developer</SPAN></I> <o:p></o:p></SPAN></FONT></P></TD>
                      <TD 
                      style="PADDING-RIGHT: 3pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 3pt; PADDING-TOP: 0.75pt; HEIGHT: 0.75pt" 
                      vAlign=top height=1>
                        <P class=MsoNormal style="TEXT-ALIGN: right" 
                        align=right><B><FONT face=Verdana color=#003366 
                        size=1><SPAN 
                        style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana">AC&amp;S 
                        LTD</SPAN></FONT></B><FONT face=Verdana color=#003366 
                        size=1><SPAN 
                        style="FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana"><BR>35A 
                        <st1:Street w:st="on"><st1:address w:st="on">Victoria 
                        Road 
                        East</st1:address></st1:Street><BR>Thornton-Cleveleys<BR><st1:place 
                        w:st="on">Lancashire</st1:place><BR>FY5 
                        5BU<BR><st1:country-region w:st="on"><st1:place 
                        w:st="on">UK</st1:place></st1:country-region> 
                        <o:p></o:p></SPAN></FONT></P></TD></TR>
                    <TR style="HEIGHT: 0.75pt" height=1>
                      <TD 
                      style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 3pt; PADDING-BOTTOM: 3pt; PADDING-TOP: 0.75pt; HEIGHT: 0.75pt" 
                      vAlign=bottom height=1>
                        <P class=MsoNormal><FONT face=Verdana color=#003366 
                        size=1><SPAN 
                        style="FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana"><A 
                        href="mailto:mark.tomlinson@acns-group.com" 
                        target=_blank><FONT color=#003366><SPAN 
                        style="COLOR: #003366; TEXT-DECORATION: none">paul.beckwith@acns-group.com</SPAN></FONT></A><BR><A 
                        href="http://www.acns-group.com/" target=_blank><FONT 
                        color=#003366><SPAN 
                        style="COLOR: #003366; TEXT-DECORATION: none">www.acns-group.com</SPAN></FONT></A> 
                        <o:p></o:p></SPAN></FONT></P></TD>
                      <TD 
                      style="PADDING-RIGHT: 3pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 3pt; PADDING-TOP: 0.75pt; HEIGHT: 0.75pt" 
                      vAlign=bottom height=1>
                        <TABLE class=MsoNormalTable cellSpacing=0 cellPadding=0 
                        align=right border=0>
                          <TBODY>
                          <TR>
                            <TD 
                            style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt" 
                            noWrap>
                              <P class=MsoNormal style="TEXT-ALIGN: right" 
                              align=right><FONT face=Verdana color=#003366 
                              size=1><SPAN 
                              style="FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana">tel: 
                              <BR>fax: : <o:p></o:p></SPAN></FONT></P></TD>
                            <TD 
                            style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 3pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt" 
                            noWrap>
                              <P class=MsoNormal style="TEXT-ALIGN: right" 
                              align=right><FONT face=Verdana color=#003366 
                              size=1><SPAN 
                              style="FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana"><A 
                              title="Click to call. Cheap rates &amp; no headset required!" 
                              href="http://www.plaxo.com/click_to_call?lang=en&amp;src=jj_signature&amp;To=%2B44+1253+855+997&amp;Email=mark.tomlinson@acns-group.com" 
                              target=_blank><FONT color=#003366><SPAN 
                              style="COLOR: #003366; TEXT-DECORATION: none">+44 
                              1253 855 997</SPAN></FONT></A><BR>+44 870 762 
                              6818<o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE>
                        <P class=MsoNormal style="TEXT-ALIGN: right" 
                        align=right><FONT face=Verdana color=#003366 
                        size=1><SPAN 
                        style="FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE>
                  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
                  style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE>
            <P class=MsoNormal><FONT face="Times New Roman" size=1><SPAN 
            style="FONT-SIZE: 1pt"><o:p></o:p></SPAN></FONT></P></TD>
          <TD 
          style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm">
            <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
            style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE>
      <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
      style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;</SPAN><o:p></o:p></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BODY></HTML>