This content has been marked as final. Show 5 replies
disable the selectable property of your textfield.
Thanks kglad. That isn't working for me. Here is my simple test case. I have a dynamic text field on the stage with an instance name of theField. And a partially transparent movieclip called cloak which overlaps the text field. (These could all be done dynamically and my actual project has a lot more going on.)
I tried changing the selectable property, but that didn't make a difference. I was able to set the styleSheet property of the textfield to null and then to reassign myStyle later and that worked, but I'm hoping to find a totally simple way to just block all mouse events from getting below the cloak. (I know old-school modal dialog. An oldie, but a goody!)
I realize this is kind of what you did already, but doesn't that achieve what you're after?
Yes. That does the trick, but I was hoping to not have to keep track of every text field (there are many and they are variable). I'm sure that (or similar) is the approach that I will have to take in the end. I was just hoping for a trick! :)
you can probably use the prototype.addProperty to add and remove a stylesheet from all your textfields in your rollover and rollout handlers.