If you want to make this modification you should do it in the HTML5
project. Keep in mind that "required" and "pattern" should be implemented
for SWF as well or at least do something suitable. I would suggest using

<html5:TextInput Š>
      <html5:RequiredInputBead />
      <html5:PatternInputBead pattern="<your pattern here>" />

The beads would then have their JS code all within COMPILE::JS blocks. The
SWF side might just be blank for now until someone implements them. I
suppose you could add required and pattern properties to the HTML5 text
input, but in the PAYG world, this would add overhead to all the times
when you don't need those features.

Anyway, you need to access the underlying element on the JS side:

override protected function createElement():WrappedHTMLElement {

At this point the this.element is created for you and is an <input>
element. Just look at the HTML project's TextInput.as file. If you going
with the required and pattern properties route, then add them to the
element here.

If you going the beads route, you don't need to change the TextInput class
at all as each bead's strand setter would get the element from the strand
and set the appropriate property on the <input> element at that point.

At least that's how I'd start out.

Peter Ent
Adobe Systems/Apache Flex Project

On 9/20/16, 3:17 AM, "OK" <p...@olafkrueger.net> wrote:

>>Want to make it happen?
>I could give it a first try tonight.
>Any help how to achieve this is appreciated ;-)
>View this message in context:
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to