@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...maybe we could take some property to go one behaviour or another...since I think both are valid
@Maxime. Thanks for sharing :), In a first quick revision I see it very clean and organized, I'll digg as I get some time :). can you upload a demo to some place where we can preview it?. Regarding the skin, It's very close to default spark TextInput skin, but I use the prompt to show the remaing mask, and I removed the incluedIn from prompt. I think nothing more there :) 2013/12/10 Maxime Cowez <maxime.co...@gmail.com> > @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 for a boolean property called 'isComplete', > which returns true (and fires a property change event) when all required > characters have been typed. > > One question though: why did you need a new skin? Seems to me the default > TextInput skin should suffice, don't you think? > Max > > > On Tue, Dec 10, 2013 at 5:14 PM, Dany Dhondt <archeme...@mac.com> wrote: > > > Great work Carlos! Nice component! > > > > Dany Dhondt > > archeme...@mac.com > > > > > > > > Op 9-dec.-2013, om 19:28 heeft Carlos Rovira <carlosrov...@apache.org> > > 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'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 spark TextInput. > > > > > > I plan to commit this component to Apache Flex SDK in the next days > > unless > > > someone let me know another alternative or some info > > > that make this component useless. In order to prepare the commit I want > > to > > > ask other committers and PMCs here where is the appropriate place > > > to hold this component and share what you consider to take into account > > in > > > order to make a right integration. If someone thinks it's not worth it > to > > > make it part of the Flex SDK, let me know as well. I don't want to > commit > > > code that could not be right for the SDK. > > > > > > Here's the link to the demo. I posted as well some doc comment text to > > > share the properties you can use: > > > > > > http://www.carlosrovira.com/blog/spark-maskedtextinput-demo/ > > > > > > Hope you consider it interesting and if you know some other similar > > > component out there, please let me know! :) > > > > > > Best, > > > > > > > > > -- > > > -- > > > Carlos Rovira > > > > > -- Carlos Rovira Director de TecnologĂa M: +34 607 22 60 05 F: +34 912 94 80 80 http://www.codeoscopic.com http://www.directwriter.es http://www.avant2.es