Hi, list!

There gotta be a solution for this one, but so far I haven't managed to
figure it out. Please help!

THE problem:

- I have a text cast member with some text, say 1000 chars
- I have assigned it to a sprite on the score and only a part of the text is
visible (text member set to FIXED)
- now I have to figure out how much of that 1000 characters is visible!

This could be done by counting lines and such, but while my content is
dynamic and the text is set to WRAP, a number of a given line doesn't say a
thing.

One possible solution is to get sprite's bottom corner coordinates and use
posToChar,  but it won't work in this particular case, because posToChar
returns -1 if used in beginSprite, prepareFrame or such (the events I'm
looking forward to). 

This shouldn't be a difficult task, as I consider it as a very basic text-
managing -simply to know what part of the text is visible to the user!

Jussi Jokinen
Tampere Polytechnic /  Finland
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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