[Xerte] RE: Glossary type thing, get the word that was clicked on in string.

Paul Swanson Paul.Swanson at harlandfs.com
Mon Dec 21 19:12:48 GMT 2009


Try:

 

debug(textSnap.getText(0, textSnap.getCount()));  

 

Works?

 

See http://flash-reference.icod.de/TextSnapshot.html#getSelected()
<http://flash-reference.icod.de/TextSnapshot.html%23getSelected()> 

 

Paul

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, December 21, 2009 11:00 AM
To: Xerte list
Subject: [Xerte] RE: Glossary type thing,get the word that was clicked
on in string.

 


I found an AS2 object, but can't quite get the info out of it.

textSnap = i65569.getTextSnapshot();
debug(textSnap);
debug(textSnap[0]);

Both the debugs give me [object Object]

Generic failure or my syntax is lacking?

Cheers,
Dave



________________________________

From: d_b_burnett at hotmail.com
To: 
Subject: Glossary type thing, get the word that was clicked on in
string.
Date: Mon, 21 Dec 2009 10:30:09 -0500


I found something called getCharIndexAtPoint(), but I think it is AS3.
I can retrieve the mousex,y and the text obviously, but can't see a way
to correlate the two.

Or am I missing the easy way?

________________________________

Hotmail: Trusted email with powerful SPAM protection. Sign up now.
<http://clk.atdmt.com/GBL/go/177141665/direct/01/>  

________________________________

Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign
up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091221/fab9b690/attachment.html


More information about the Xerte mailing list