<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18226" name=GENERATOR>
<STYLE>
<!--
                       
 font-face
        {font-family:"Cambria Math";}
font-face
        {font-family:Calibri;}
font-face
        {font-family:Tahoma;}
                        
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {
        margin-right:0in;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.estilocorreo17
        {
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.estilocorreo18
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {
        font-size:10.0pt;}

div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV id=idOWAReplyText13841 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>bad coder idea</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>why not pad the image so at its smallest it is equal to the width of the smallest text field.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Then note this down (like a html min width) and then increase the x of the image according to the size of the text field?</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> Tue 26/05/2009 18:13<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Object Text vs HTML<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">You could use two text icons, one for the above graphic text and one for below. Load the image into a graphic icon as Julian suggests, then use an onLoad event to get the image width and height once it has loaded. Now you can center the image with code:</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">newX = (Stage.width / 2) - (img._width / 2); // calculate starting x when centered</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">newY = img._y; // don't change starting y</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">img.move(newX,newY); // move to centered position</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">img.fadeIn(10); // make it fade in</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">At this point you could use img._height to position the below image text icon. If you set the h property of the above image text icon, you could use that, along with the height of the image to position the y coordinate of the image, add the image height to determine the position of the bottom of the image, and that will tell you where the y coordinate of the below image text icon should be.</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Paul</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian Tenney<BR><B>Sent:</B> Tuesday, May 26, 2009 9:59 AM<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Object Text vs HTML</SPAN></P></DIV></DIV>
<P class=MsoNormal>&nbsp;</P>
<DIV id=idOWAReplyText22826>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">so far my hunting has only found that align="left" and align="right" work. "center" doesn't appear to be supported by the lfash player. Taking Xerte out of the picture, can you get this to work in Flash directly? Let's prove your colleague right or wrong first...</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN>&nbsp;</P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I cannot get it to work in Xerte either. I've tried stylesheets, attributes on the &lt;p&gt; and &lt;img&gt; tags, and setting the text using code to prevent any internals overriding anything -&nbsp;and no dice.</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN>&nbsp;</P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Can you fake it by using a text field the same size as the image, and positioning the text field so that it is in the middle of the screen?</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN>&nbsp;</P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">The next problem is that there is no onLoad event fired by textFields when images load, so you have no way of dynamically finding out how wide the image loading into the textfield is. You can work around that by&nbsp; loading the image first into a graphic icon, handling its load event with an interaction icon, deleteing the graphic from the stage and usig the info you can find out in the event handler to set up the rest of the page? Ugly workaround, I know...&nbsp; but if it isn't supported it isn't supported.</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN>&nbsp;</P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk on behalf of Julian Tenney<BR><B>Sent:</B> Tue 26/05/2009 17:31<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] Object Text vs HTML</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<DIV id=idOWAReplyText97785>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">what path are you using for the image?</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN>&nbsp;</P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">If relative it needs to be relative to XMLEngine.swf. FileLocation is not evaluated in an html &lt;img&gt; tag. Does it work when published in the browser?</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN>&nbsp;</P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk on behalf of Marc Torruella Altadill<BR><B>Sent:</B> Tue 26/05/2009 17:00<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> RE: [Xerte] Object Text vs HTML</SPAN><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Thank you, but already tried that and doesn&#8217;t work.</SPAN><SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">But knowing it&#8217;s a flash textfield thing, we will check google the almighty.</SPAN><SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Many thanks once again,</SPAN><SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Marc</SPAN><SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">De:</SPAN></B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <B>En nombre de </B>Julian Tenney<BR><B>Enviado el:</B> martes, 26 de mayo de 2009 17:52<BR><B>Para:</B> Xerte discussion list<BR><B>Asunto:</B> RE: [Xerte] Object Text vs HTML</SPAN><SPAN lang=ES></SPAN></P></DIV></DIV>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<DIV id=idOWAReplyText24605>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Not a Xerte thing. You are accessing a Flash textfield. IconID.txt is the reference if you want to access it directly. Not all the HTML is supported, but Xerte text icons can do everything that Flash textfields can do. </SPAN><SPAN lang=ES></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">&lt;p align="center"&gt;&lt;img src="blah"&gt;&lt;/p&gt;?</SPAN><SPAN lang=ES></SPAN></P></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN lang=ES style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk on behalf of Marc Torruella Altadill<BR><B>Sent:</B> Tue 26/05/2009 15:17<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> [Xerte] Object Text vs HTML</SPAN><SPAN lang=ES></SPAN></P></DIV>
<DIV>
<P class=MsoNormal>Hello all,<SPAN lang=ES></SPAN></P>
<P class=MsoNormal>We are using the xerte&#8217;s object text with html and seems to recognize some tags, but not all and not &#8220;good enough&#8221;.<SPAN lang=ES></SPAN></P>
<P class=MsoNormal>We want a paragraph, then a centered image, and under it another text paragraph. But we get the text&nbsp; at the right side of the image, not below.<SPAN lang=ES></SPAN></P>
<P class=MsoNormal>We have a simple content like this:<SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal>&lt;p&gt; Some large text &lt;/p&gt;<SPAN lang=ES></SPAN></P>
<P class=MsoNormal>&lt;img src=&#8221;some_url&#8221;/&gt;<SPAN lang=ES></SPAN></P>
<P class=MsoNormal>&lt;p&gt; More large text &lt;/p&gt;<SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal>Any workarounds?<SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal>It may be a silly question but my college insists its not a simple flash issue but a xerte&#8217;s object text thing. What you think?<SPAN lang=ES></SPAN></P>
<P class=MsoNormal><SPAN lang=ES></SPAN>&nbsp;</P>
<P class=MsoNormal>Thank you.<SPAN lang=ES></SPAN></P></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>