please some text input

I think i've already read something related to that problem, so let me second the request concerning the TextFieldType.INPUT which is apparently not working (Texfield can't be selectable at this point so it can't be used as a text input, it's a pity), i w…

Viewing 1 to 7 (7 Total)
please some text input

LeFabrice

LeFabrice
Total Posts: 34
Joined: April 02, 2012

I think i've already read something related to that problem, so let me second the request concerning the TextFieldType.INPUT which is apparently not working (Texfield can't be selectable at this point so it can't be used as a text input, it's a pity), i was wondering when this would work, and if anyone has an InputText object working at his point.

Tags:
Posted on April 17, 2012 at 4:34 AM

altef

altef
Total Posts: 105
Joined: February 25, 2012

Re: please some text input

It seems to work for me in flash and android. At least, I can type into it. The text doesn't select on android, but it can still be used for input?

var t = new TextField();
var tf = new TextFormat( "_sans", 18, 0x000000 );
t.text = "Hi";
t.border = true;
t.borderColor = 0x999999;
t.type = TextFieldType.INPUT;
stage.addChild( t );

Posted on April 17, 2012 at 10:39 AM

LeFabrice

LeFabrice
Total Posts: 34
Joined: April 02, 2012

Re: please some text input

It works when targeting flash, but not html5.
Sorry i forgot to say that i was targeting html5

Posted on April 17, 2012 at 10:57 AM

altef

altef
Total Posts: 105
Joined: February 25, 2012

Re: please some text input

oh, html5! The target I always forget, even though it is really cool

Posted on April 17, 2012 at 11:00 AM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: please some text input

I think @crayfellow may have been working on a NativeTextField for use with Jeash. I'm not sure if that would be implemented using a standard DIV or if it supported an input field, but I think that might be the way to go for your project.

It sounds like the main issue is text, so being able to boost Jeash's canvas-based TextFields, or implement standard HTML text or input fields, could solve your problems.

To be honest, there should probably be some kind of "jeash.display.NativeElement" class, which wraps standard HTML elements to help you control their position, size, and layer them among other objects.

Posted on April 17, 2012 at 11:04 AM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: please some text input

Jeash is hosted on GitHub, so if anyone wants to help Niel out with some improvements, it might be a good idea to do a pull request

Posted on April 17, 2012 at 11:05 AM

LeFabrice

LeFabrice
Total Posts: 34
Joined: April 02, 2012

Re: please some text input

yes, thanks for the tip, that's what i was planning to do: getting more familiar with jeash package

Posted on April 17, 2012 at 11:08 AM