Re: New Flex MaskedTextInput Spark Component

2014-03-16 Thread Carlos Rovira
sed by Maxime) and >> hope to >> > > see look to fix it soon, but though that this revision was important >> for >> > > people using it right now so I take the time to update this thread. >> > > >> > > Best, >> > > >> >

Re: New Flex MaskedTextInput Spark Component

2014-03-16 Thread Carlos Rovira
t; > > > > > Best, > > > > > > Carlos > > > > > > > > > > > > > > > > > > > > > 2014/1/9 Kessler CTR Mark J > > > > > >> Here is a quick example usage... > > >>

Re: New Flex MaskedTextInput Spark Component

2014-03-14 Thread Maxime Cowez
quick example usage... > >> > >> > >> var pattern:RegExp = RegExPatterns.createRegExp("what I'm matching", > >> RegExPatterns.CONTAINS); > >> > >> myTextInput.text.match(pattern); > >> or > >> myTextInput.text.r

Re: New Flex MaskedTextInput Spark Component

2014-01-21 Thread Carlos Rovira
-Mark >> >> -----Original Message- >> From: carlos.rov...@gmail.com [mailto:carlos.rov...@gmail.com] On Behalf >> Of Carlos Rovira >> Sent: Thursday, January 09, 2014 7:17 AM >> To: dev@flex.apache.org >> Subject: Re: New Flex MaskedTextInput Spark Comp

Re: New Flex MaskedTextInput Spark Component

2014-01-20 Thread Carlos Rovira
Mark > > -Original Message- > From: carlos.rov...@gmail.com [mailto:carlos.rov...@gmail.com] On Behalf > Of Carlos Rovira > Sent: Thursday, January 09, 2014 7:17 AM > To: dev@flex.apache.org > Subject: Re: New Flex MaskedTextInput Spark Component > > Hi Mark, thanks for poin

RE: New Flex MaskedTextInput Spark Component

2014-01-09 Thread Kessler CTR Mark J
ssage- From: carlos.rov...@gmail.com [mailto:carlos.rov...@gmail.com] On Behalf Of Carlos Rovira Sent: Thursday, January 09, 2014 7:17 AM To: dev@flex.apache.org Subject: Re: New Flex MaskedTextInput Spark Component Hi Mark, thanks for pointing me to this class, I was not aware of it, and I

Re: New Flex MaskedTextInput Spark Component

2014-01-09 Thread Carlos Rovira
erns.html > > > -Mark > > -Original Message- > From: Maxime Cowez [mailto:maxime.co...@gmail.com] > Sent: Wednesday, January 08, 2014 8:50 AM > To: dev@flex.apache.org > Subject: Re: New Flex MaskedTextInput Spark Component > > @Mark > > Is the regex requirement

Re: New Flex MaskedTextInput Spark Component

2014-01-09 Thread Carlos Rovira
r CTR Mark J < > mark.kessler@usmc.mil> wrote: > > > >* Regex patterns like proposed by Justin and Maxime (this will allow us > to > > restrict a insertion to a Max/Min value). > > > > Is the regex requirement just for numbers or all input? > > > > -

RE: New Flex MaskedTextInput Spark Component

2014-01-08 Thread Kessler CTR Mark J
: Maxime Cowez [mailto:maxime.co...@gmail.com] Sent: Wednesday, January 08, 2014 8:50 AM To: dev@flex.apache.org Subject: Re: New Flex MaskedTextInput Spark Component @Mark > Is the regex requirement just for numbers or all input? If you're working with a regex, you can configure any

Re: New Flex MaskedTextInput Spark Component

2014-01-08 Thread Maxime Cowez
just for numbers or all input? > > -Mark > > -Original Message- > From: carlos.rov...@gmail.com [mailto:carlos.rov...@gmail.com] On Behalf > Of Carlos Rovira > Sent: Tuesday, January 07, 2014 7:38 PM > To: dev@flex.apache.org > Subject: Re: New Flex MaskedTextInput S

Re: New Flex MaskedTextInput Spark Component

2014-01-08 Thread Maxime Cowez
l.com [mailto:carlos.rov...@gmail.com] On Behalf > Of Carlos Rovira > Sent: Tuesday, January 07, 2014 7:38 PM > To: dev@flex.apache.org > Subject: Re: New Flex MaskedTextInput Spark Component > > Hi, > > I rewrite the MaskedTextInput component to support various important &g

RE: New Flex MaskedTextInput Spark Component

2014-01-08 Thread Kessler CTR Mark J
los Rovira Sent: Tuesday, January 07, 2014 7:38 PM To: dev@flex.apache.org Subject: Re: New Flex MaskedTextInput Spark Component Hi, I rewrite the MaskedTextInput component to support various important concepts: * get/set data vía "text" property (remove "rawText" prope

Re: New Flex MaskedTextInput Spark Component

2014-01-07 Thread Carlos Rovira
Hi, I rewrite the MaskedTextInput component to support various important concepts: * get/set data vía "text" property (remove "rawText" property). "get" text remove separators and "set" text format the string to display in the component. I think this the most important improvement. * Support for

Re: New Flex MaskedTextInput Spark Component

2013-12-11 Thread Carlos Rovira
Hi Maxime, love your example, works pretty well :). I think your approach is very near the final solution. As my version both requires to implement two or three more features to be valid to 99% of Flex SDK users. In you sample I only could see a little layout problem with IBAN that make the text

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Maxime Cowez
I managed to compile a little demo application of my Gist. http://riastar.github.io/MaskedTextInputFx/ What I noticed: - yours handles copy/paste operations, mine doesn't - mine handles the phone and IBAN samples a little better (because of the multiple separators/delimiters) - yours handles the p

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Carlos Rovira
Hi Maxime and all, I share the component in gist to give it access until I have the time to commit to Flex SDK. You can see it here: AS3 Class: https://gist.github.com/carlosrovira/7895322 Skin: https://gist.github.com/carlosrovira/7895395 CSS: https://gist.github.com/carlosro

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Maxime Cowez
@Carlos It only *looks *clean and organized on the surface ;) But it doesn't really respect the component lifecycle very well. Just look at the last line (the override of dispatchEvent) and the override of setText. I'll try to cook you an example as soon as I can. On Tue, Dec 10, 2013 at 6:11 PM,

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Carlos Rovira
@Maurice. The behavior you describe is the expected behaviour. Before I code the component, I search the web for available solutions, and I see the same behaviour adopted in various implementations, so I take that as a pattern... The way you expect it to behave is already valid too and widely used.

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Maxime Cowez
@Carlos I put my take at a MaskedTextInput in a Gist: https://gist.github.com/RIAstar/7893328 I repeat: there's some rather dirty code in there, however there's also some logic to handle multiple separators with a regex. Perhaps you can find some inspiration there. Apparently I also felt the need

RE: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Maurice Amsellem
again, really nice components, PS: I like the "controls rain" app :-) Maurice -Message d'origine- De : Dany Dhondt [mailto:archeme...@mac.com] Envoyé : mardi 10 décembre 2013 17:15 À : dev@flex.apache.org Objet : Re: New Flex MaskedTextInput Spark Component Great wo

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Dany Dhondt
Great work Carlos! Nice component! Dany Dhondt archeme...@mac.com Op 9-dec.-2013, om 19:28 heeft Carlos Rovira het volgende geschreven: > Hi, > > These days I worked a new spark MaskedTextInput component and I want to > share a demo of this component so you can play with it. > I think there

Re: New Flex MaskedTextInput Spark Component

2013-12-10 Thread Carlos Rovira
@Justin, I'll go the 1 route since although the component is functionally complete (minus the things we commented here), I don't have the test. I think it's better start in experimental and as it evolves move it to a better place @Cosma, so this component will not work on mobile since it uses Flow

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Cosma Colanicchia
Nice component, thanks. About the mobile, I had a component with immediate validation (e.g. numeric input), that on mobile does not work because the TextOperationEvent dispatched does not contain the most important information (the operation:FlowOperation attribute). Probably non-TLF implementatio

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Justin Mclean
Hi, > @Justin, I'll check your comments to see how we can take into account all > this things, but I'm afraid that this initial component is not as > smart..maybe with the time and your help we can build such versatile > maskedtextinput component. Sure can help out there and tat certainly doesn't

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Carlos Rovira
Hi, @Erik, @Maurice, thanks for your kindly words :), this encourages me to commit the component :) @Lee, I must confess that my development is focused on browser so I didn't take StageText into account, but as this is a spark TextInput extension, I think it should work, since it mainly uses two

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Justin Mclean
Hi, > - there was a list of possible separators The mx:DateFormatter validator does this (see parseDateString), you might want to take a look at how it does it. Also you might want to consider how to mask for currency ($ + , + .) and non english dates with multiple separators (eg Japanese dat

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Maxime Cowez
Hey Carlos, That's great. I'd written a very similar component a few years ago, which worked pretty much the same as yours except the code was never publication-worthy ;) >From what I've seen, there are 2 minor differences: - there was a list of possible separators (which could also be configure

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Harbs
Very nice! One thing: The IBAN and Phone masks do not work the way I'd expect. It should jump straight to the numbers. On Dec 9, 2013, at 8:28 PM, Carlos Rovira wrote: > Hi, > > These days I worked a new spark MaskedTextInput component and I want to > share a demo of this component so you ca

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Lee Burrows
Awesome stuff Carlos. Does it work with Mobile too? (ie: with StageText) On 09/12/2013 18:28, Carlos Rovira wrote: Hi, These days I worked a new spark MaskedTextInput component and I want to share a demo of this component so you can play with it. I think there's no such component already in the

Re: New Flex MaskedTextInput Spark Component

2013-12-09 Thread Erik de Bruin
This is supremely useful, thank you! EdB On Mon, Dec 9, 2013 at 7:28 PM, Carlos Rovira wrote: > Hi, > > These days I worked a new spark MaskedTextInput component and I want to > share a demo of this component so you can play with it. > I think there's no such component already in the Flex SDK

New Flex MaskedTextInput Spark Component

2013-12-09 Thread Carlos Rovira
Hi, These days I worked a new spark MaskedTextInput component and I want to share a demo of this component so you can play with it. I think there's no such component already in the Flex SDK or out there, and as I needed for a project I had to make one from scratch. The component is an extension of