I left out a detail in my earlier post. Here is the full, story, and I have a 20KB dir file that demonstrates my little problem.

A text member (an Input box) is attached to this sprite, named InputBox:

on beginSprite me
  sprite(me.SpriteNum).member.editable  = false
end

on mouseDown me
  sprite(me.SpriteNum).member.editable  = true
end

A "Done" button on the stage does this:

on mouseUp
   sprite("InputBox").member.editable = false
end

I want the input box to be non-editable until the user clicks it. After the user inputs his text, I want him to he click the Done button so the input box becomes non-editable again. When the user clicks the input box again, I want the text member to be editable again.

What actually happens in my test movie is that when I first click the input box, it behaves as expected: the insertion point appears, and the box becomes editable. I click Done, and the insertion cursor disappears, as expected. But when I click the input box again, the insertion point does not reappear, even though the text becomes editable.

I tried this:

on mouseDown me
  sprite(me.SpriteNum).member.editable  = true
  sprite(me.SpriteNum).member.selection = [1, 1]
end

but that made no difference: I can type into the box, but do not see the insertion cursor.

I also checked _movie.KeyboardFocusSprite, and as expected, it has the value of my InputBox sprite.

What am I doing wrong?

Thanks for any tips,

Slava

[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