RE: [Flashcoders] Getting the selection

2006-05-29 Thread Steven Sacks
That's one of those slap on the forehead ones that getcha everytime! :) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Bart Wttewaall > Sent: Monday, May 29, 2006 2:47 PM > To: Flashcoders mailing list > Subject:

Re: [Flashcoders] Getting the selection

2006-05-29 Thread Bart Wttewaall
It's because the button you click will have the focus. So you should return the focus on the textfield before you can get the Selection of the text. [as] underline_btn.addEventListener("click", mx.utils.Delegate.create(this, underline_check)); function underline_check(evt:Object):Void {