mobilewish / as3texteditor

Automatically exported from code.google.com/p/as3texteditor
1 stars 0 forks source link

One texteditor control with two TextFields #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I have multiple textfields and one texteditor control.  The idea here is to
click on the textfield and highlight text and then make changes with the
texteditor control.

I have a CLICK handler setup on each textfield which is simply running the
command "tt.input_txt = event.target;".  When I run program I'm getting the
folowing error:

1118: Implicit coercion of a value with static type Object to a possibly
unrelated type flash.text:TextField.   tt.input_txt = event.target;

What version of the product are you using? On what operating system?
Latest from subversion repository on WinXP PRO

Original issue reported on code.google.com by tod...@gmail.com on 30 Nov 2009 at 6:54

GoogleCodeExporter commented 9 years ago
I think i got this one myself.  When I change "tt.input_txt = event.target;" to
"tt.input_txt = TextField(event.target);" is seems to be much happier.

Original comment by tod...@gmail.com on 30 Nov 2009 at 7:45

GoogleCodeExporter commented 9 years ago
Yeah, you weren't casting it. event.target is an Object, so even though it's 
also a
TextField in this case you have to tell it that.  Another way of doing the same 
is
"tt.input_txt = event.target as TextField;"

Original comment by JWoffen...@gmail.com on 2 Mar 2010 at 1:46

GoogleCodeExporter commented 9 years ago
Adjusting the flags - this looks more like a feature request than a defect to 
me.

Original comment by JWoffen...@gmail.com on 2 Mar 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Hi
Can you guide me how to implement to simple textarea in html form.

thanks in advance.

Original comment by dipancho...@gmail.com on 4 Jun 2010 at 9:46

GoogleCodeExporter commented 9 years ago
Great TextEditor and it will do the work for me, But I need help in my Battle 
to get all my textfields running with this baby.
I duplicate some code and change some names, so there is no conflict, bur still 
one textfield is just editteble???

Hope you can help me out with this one to lead me on the right track.

Thanks and greetings Wilbert

Original comment by wilbertl...@gmail.com on 16 Aug 2010 at 5:45