<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
OK, I tried to replicate this in Flash proper.<br>Works as expected if the textfield is set to static.<br>Dynamic or input returns null (good old undefined).<br><br>tf.typeOf in Xerte returns dynamic (naturally) and there does not seem to be a programmatic method of changing a TF to static.<br><br>Smashing my head against the wall perhaps.<br><br><br><hr id="ecxstopSpelling">From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: RE: [Xerte] RE: Glossary type thing,        get the word that was clicked on in string.<br>Date: Thu, 24 Dec 2009 09:01:36 -0500<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
undefined.<br><br>I'm an OOP idiot.<br>What am I thinking wrong here?<br><br>//retrieve an object with the text contents of the text mc i65569 <br>textSnap = i65569.getTextSnapshot();<br><br>//look at the functions available to me to retrieve specific data<br>inspect(textSnap);<br><br>//use one of the functions to get a value<br>debug(textSnap.getCount());<br><br><br>Returns undefined.<br>So textSnap has no values in it.<br>??<br><br><br><hr id="ecxecxstopSpelling">Subject: RE: [Xerte] RE: Glossary type thing,        get the word that was clicked on in string.<br>Date: Wed, 23 Dec 2009 22:32:24 +0000<br>From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<div id="ecxecxecxidOWAReplyText92741" dir="ltr">
<div dir="ltr"><font size="2" color="#000000" face="Arial">what does</font></div>
<div dir="ltr"><font face="Arial"></font> </div>
<div dir="ltr"><font face="Arial">inspect(textSnap[0]) give you?</font></div></div>
<div dir="ltr"><br>
<hr>
<font size="2" face="Tahoma"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<br><b>Sent:</b> Mon 21/12/2009 19:00<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] RE: Glossary type thing,get the word that was clicked on in string.<br></font><br></div>
<div><br>I found an AS2 object, but can't quite get the info out of it.<br><br>textSnap = i65569.getTextSnapshot();<br>debug(textSnap);<br>debug(textSnap[0]);<br><br>Both the debugs give me [object Object]<br><br>Generic failure or my syntax is lacking?<br><br>Cheers,<br>Dave<br><br><br>
<hr id="ecxecxecxstopSpelling">
From: d_b_burnett@hotmail.com<br>To: <br>Subject: Glossary type thing, get the word that was clicked on in string.<br>Date: Mon, 21 Dec 2009 10:30:09 -0500<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<br>I found something called getCharIndexAtPoint(), but I think it is AS3.<br>I can retrieve the mousex,y and the text obviously, but can't see a way to correlate the two.<br><br>Or am I missing the easy way?<br><br>
<hr>
Hotmail: Trusted email with powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">Sign up now.</a> <br>
<hr>
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141664/direct/01/">Sign up now.</a> </div>                                            <br><hr>Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141664/direct/01/">Sign up now.</a>                                            <br><hr>Hotmail: Trusted email with powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">Sign up now.</a>                                            <br /><hr />Hotmail: Powerful Free email with security by Microsoft. <a href='http://clk.atdmt.com/GBL/go/171222986/direct/01/' target='_new'>Get it now.</a></body>
</html>