Hi Sean
Thanks for the suggested workaround
I posted a similar problem a few weeks ago and got no response - I found
when you change the colour of individual words in a text cast member with
some fonts and font styles the words are displaced - usually to the left. I
also had encountered the slow-down problem.
Your workaround is very helpful (I am using Director 7.02) - it solves the
speed issue which is very helpful.
I find however that the charPosToLoc function is not reliable with some
fonts (eg Comic Sans Bold) - it incorrectly reports the position, expecially
as the words get further from left hand side of the text frame. Presumably
this is linked to the movement of the words when changing colour I
experienced before. This means that it is difficult to align the shape
sprite for some fonts.
However this is definitely an improvement on having the text displace as the
colour of a word changes.
I don't know if you have any comments on this.
Thanks again for the workaround
Trevor Geddes

>> Hi Slava,

>> The text member has only about 500 characters, but there's a noticeable
>> delay before the color changes after the mouseclick. This happens
>> with many
>> text members in the same movie.
>>
>> Has this been noted before? Do these crashes make sense?
>>
>> If so, is there a workaround?

>
>WORKAROUND: for D8 and above: use imaging lingo and copyPixels() (to the
>stage) a highlight over the word clicked. D7.02: use a series of off-stage
>shape sprites with add/lighten/(insert approprite inkType) and move these
>into position by calculating the rect using charPosToLoc from the text
>member.

------------------------------------------------------
We produce computer programs for language development.
Look us up at http://geddesproductions.com


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to