RE: [Flashcoders] Creating a text highlight tool

2007-05-11 Thread Danny Kodicek
Hi Danny, it would be multi line text and I don't know if it will be center aligned. Maybe some parts will be. I didn't really get the technique you described. Can you please try and describe it again? Or is it possible that you share the code that you have? I can even compensate it

RE: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Danny Kodicek
Hi list, any tips on how to create a text highlighter? The perfect solution will be that I use the text cursor inside the textfield. Now, I was thinking of using drawing API on the invisible mc below the textfiled and when I would click in the textfield I would start drawing a rectangle

Re: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Ian Thomas
On 5/10/07, Danny Kodicek [EMAIL PROTECTED] wrote: I've done it in the past (although in the end I didn't use it) by creating a function that homes in on the exact coordinates of the insertion point by adding text into a hidden field and using textWidth / textHeight (the tricky part is finding

RE: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Danny Kodicek
On 5/10/07, Danny Kodicek [EMAIL PROTECTED] wrote: I've done it in the past (although in the end I didn't use it) by creating a function that homes in on the exact coordinates of the insertion point by adding text into a hidden field and using textWidth / textHeight (the tricky part

RE: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Alen Balja
Hi Danny, it would be multi line text and I don't know if it will be center aligned. Maybe some parts will be. I didn't really get the technique you described. Can you please try and describe it again? Or is it possible that you share the code that you have? I can even compensate it somehow if it

Re: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Alen Balja
I was assuming that AS3 might provide some options. I was only using it in Flex though, and not the RTE. I will definitely check it, but your idea seems a bit like an overkill :) On 5/10/07, Danny Kodicek [EMAIL PROTECTED] wrote: I've done it in the past (although in the end I didn't use it)

Re: [Flashcoders] Creating a text highlight tool

2007-05-10 Thread Ian Thomas
On 5/10/07, Alen Balja [EMAIL PROTECTED] wrote: I was assuming that AS3 might provide some options. I was only using it in Flex though, and not the RTE. I will definitely check it, but your idea seems a bit like an overkill :) Oh, absolutely - I'm not suggesting it as a solution for your

[Flashcoders] Creating a text highlight tool

2007-05-09 Thread Alen Balja
Hi list, any tips on how to create a text highlighter? The perfect solution will be that I use the text cursor inside the textfield. Now, I was thinking of using drawing API on the invisible mc below the textfiled and when I would click in the textfield I would start drawing a rectangle on that