<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[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]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.estilocorreo17
        {mso-style-name:estilocorreo17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.estilocorreo18
        {mso-style-name:estilocorreo18;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple>

<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:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>newX = (Stage.width / 2) -
(img._width / 2); // calculate starting x when centered<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>newY = img._y; // don't change
starting y<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>img.move(newX,newY); // move to
centered position<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>img.fadeIn(10); // make it fade
in<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></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.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Paul<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;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<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div id=idOWAReplyText22826>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>so far my hunting has only found that align=&quot;left&quot; and
align=&quot;right&quot; work. &quot;center&quot; 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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=ES style='font-size:10.0pt;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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<div id=idOWAReplyText97785>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>what path are you using for the image?</span><span lang=ES
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=ES style='font-size:10.0pt;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:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></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><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></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><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Many thanks once again,</span><span
lang=ES><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Marc</span><span lang=ES><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
lang=ES style='font-size:10.0pt;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><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<div id=idOWAReplyText24605>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>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><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span lang=ES style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>&lt;p align=&quot;center&quot;&gt;&lt;img
src=&quot;blah&quot;&gt;&lt;/p&gt;?</span><span lang=ES><o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=ES
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=ES
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=ES style='font-size:10.0pt;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><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal>Hello all,<span lang=ES><o:p></o:p></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><o:p></o:p></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><o:p></o:p></span></p>

<p class=MsoNormal>We have a simple content like this:<span lang=ES><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal>&lt;p&gt; Some large text &lt;/p&gt;<span lang=ES><o:p></o:p></span></p>

<p class=MsoNormal>&lt;img src=&#8221;some_url&#8221;/&gt;<span lang=ES><o:p></o:p></span></p>

<p class=MsoNormal>&lt;p&gt; More large text &lt;/p&gt;<span lang=ES><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal>Any workarounds?<span lang=ES><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></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><o:p></o:p></span></p>

<p class=MsoNormal><span lang=ES>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal>Thank you.<span lang=ES><o:p></o:p></span></p>

</div>

</div>

</div>

</div>

</div>

</body>

</html>