<HTML dir=ltr><HEAD><TITLE>Positioning icons relative to the previous icon.</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText33785 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>try _ytile</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>It gives you the value of icon.previousSibling.clip()._y + icon.previousSibling.clip()._height. I usually put _ytile + 10 in the y property.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Paul Swanson<BR><B>Sent:</B> Wed 19/11/2008 21:59<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> [Xerte] Positioning icons relative to the previous icon.<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT face=Verdana size=2>I'm attempting to build a table using multiple text icons. I'm using individual text icons for each cell in combination with drawBorder in a script icon. I've been manually computing the y coordinate by adding the height of the previous icon to the y coordinate of the previous icon. It's time consuming, and I'm thinking there must be a better way. I've tried variations of icon.previousSibling._y, but it seems to be returning 0 (or, more likely, undefined) because it always ends up at y=0.</FONT></P>
<P><FONT face=Verdana size=2>I've currently got icon.previousSibling.attributes.y + icon.previousSibling.attributes.h as the y property, but that makes the text disappear completely (perhaps it's off the stage?). Do I just have the wrong property, or is this because the properties of the previousSibling are unknown when the next icon is encountered?</FONT></P>
<P><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT> </P>
<P><FONT face="Courier New" color=#808080 size=2> Paul Swanson</FONT> <BR><FONT face="Courier New" color=#808080 size=2> Instructional Designer</FONT> <BR><FONT face="Courier New" color=#808080 size=2> Harland Financial Solutions</FONT> <BR><FONT face="Courier New" color=#808080 size=2> 800.274.7280 Ext. 2462</FONT> <BR><FONT face="Courier New" color=#808080 size=2> Paul.Swanson@harlandfs.com</FONT> <BR><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT> </P></DIV></BODY></HTML>