[Xerte] Re: Accessing breakApart() words

Julian Tenney 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[0] 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

All,

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

    IdPrayer.wordClicked.setText(rep);

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.

    IdPrayer.wordClicked.setText("Something else");


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,
Kent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130122/dbf81362/attachment-0001.html>


More information about the Xerte mailing list