[Xerte] Re: Accessing breakApart() words
Julian.Tenney at nottingham.ac.uk
Tue Jan 22 15:24:54 GMT 2013
WORDs have set text which will set the text. I don't see why that would stop working: is wordClicked the problem, rather than setText() - can you try calling setText() on w through a button press several times to see if it fails?
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kent Chesnut
Sent: 22 January 2013 01:42
To: Xerte Lists
Subject: [Xerte] Accessing breakApart() words
I use breakApart() to convert a text field into a series of movie clips.
w = IdPrayer.breakApart(25, 5, true, false);
I am then able to access the text and the index of a word when it is clicked.
Txt = IdPrayer.wordClicked.text;
Index = IdPrayer.wordClicked.index;
I am able to replace the text
However, I am only able to set the text 1 time. And although the word changes on the screen, IdPrayer.wordClicked.text has the original string in it when I click the modified word. If I try to change the text a second time, nothing happens.
I'm guessing that setText() is not what I should be using here... but haven't found what I should be using.
Thanks in advance for any help you can provide.
Have a great evening,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xerte