[flexcoders] Input formatting

2005-08-02 Thread James
Title: Loading mxml Components










Hello All



Anybody figure out to to-do input
formatting:



Exam: I want to save a phone number as
9991234567

But I want it to appear on input: (999)
123-4567



Any help would be appreciated



JT
















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











To ensure compliance with requirements imposed by the IRS, we inform you that any U.S. federal tax advice contained in this document (including any attachments) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com



Re: [flexcoders] Input formatting

2005-08-02 Thread Aldo Bucchi
Take a look at the phone formatter!

http://livedocs.macromedia.com/flex/15/asdocs_en/mx/formatters/PhoneFormatter.html



On 8/2/05, James [EMAIL PROTECTED] wrote:
  
  
 
 Hello All 
 
   
 
 Anybody figure out to to-do input formatting: 
 
   
 
 Exam: I want to save a phone number as 9991234567 
 
 But I want it to appear on input: (999) 123-4567 
 
   
 
 Any help would be appreciated 
 
   
 
 JT 
  
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
  
  
  
  YAHOO! GROUPS LINKS 
  
  
  Visit your group flexcoders on the web.
   
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  
  
  
 
 
  
  To ensure compliance with requirements imposed by the IRS, we inform you
 that any U.S. federal tax advice contained in this document (including any
 attachments) is not intended or written to be used, and cannot be used, for
 the purpose of (i) avoiding penalties under the Internal Revenue Code or
 (ii) promoting, marketing or recommending to another party any transaction
 or matter addressed herein.
  
  This email may contain confidential and privileged material for the sole
 use of the intended recipient(s). Any review, use, distribution or
 disclosure by others is strictly prohibited. If you are not the intended
 recipient (or authorized to receive for the recipient), please contact the
 sender by reply email and delete all copies of this message.
  
  To reply to our email administrator directly, send an email to
  [EMAIL PROTECTED]
  
  Littler Mendelson, P.C.
  http://www.littler.com
  
  


-- 
: Aldo Bucchi :
mobile (56) 8 429 8300


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h3msic8/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123014260/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Input formatting

2005-08-02 Thread Darron J. Schall
James wrote:

 Hello All

  

 Anybody figure out to to-do input formatting:

  

 Exam: I want to save a phone number as 9991234567

 But I want it to appear on input: (999) 123-4567

  

 Any help would be appreciated

  


http://www.darronschall.com/downloads/fti.swf

This component will be available as part of the IFBIN service.  I've 
built a FormattedTextInput component (for both Flash and Flex) that 
allows you to specify a format mask, and it will restrict the user's 
input so that it matches the mask.

Valid format 'input placeholder' characters:
# - any digit  (0-9)
 a - lowercase letter
A - uppercase letter
Z - any letter
* - any letter or digit

Example usage:
my_ti.format = (###) ### - ;

Then, to get the value of out it, use:  my_ti.value   - that will 
return just the input that matches the input placeholders, ie in the 
scernario about, .value will just be 10 digits (with formatting removed).

If you set the .text property of the component, it will 
automatically format it as well:

my_ti.text = 555999;  // will display according to the format

If you want this as a Flex component, you'll have to wait until Flex by 
Example ships.  The Flash component was part of my talk on Extending 
Components at Flash in the Can in april.  You can also either find my 
Flash source and tweak it to work with Flex, or hope someone else builds 
it for you..  but these are the types of high-quality examples and 
useful code snippets that you'll see in Flex by Example.  ;-)

-d




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h53s047/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123014254/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Input formatting

2005-08-02 Thread James
I will have to admit, it's the closest I've seen, but when I went to the
link, it reversed the numbers in the area code.

Thanks for the ideas though

JT

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Darron J. Schall
Sent: Tuesday, August 02, 2005 2:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Input formatting

James wrote:

 Hello All

  

 Anybody figure out to to-do input formatting:

  

 Exam: I want to save a phone number as 9991234567

 But I want it to appear on input: (999) 123-4567

  

 Any help would be appreciated

  


http://www.darronschall.com/downloads/fti.swf

This component will be available as part of the IFBIN service.  I've 
built a FormattedTextInput component (for both Flash and Flex) that 
allows you to specify a format mask, and it will restrict the user's 
input so that it matches the mask.

Valid format 'input placeholder' characters:
# - any digit  (0-9)
 a - lowercase letter
A - uppercase letter
Z - any letter
* - any letter or digit

Example usage:
my_ti.format = (###) ### - ;

Then, to get the value of out it, use:  my_ti.value   - that will 
return just the input that matches the input placeholders, ie in the 
scernario about, .value will just be 10 digits (with formatting removed).

If you set the .text property of the component, it will 
automatically format it as well:

my_ti.text = 555999;  // will display according to the format

If you want this as a Flex component, you'll have to wait until Flex by 
Example ships.  The Flash component was part of my talk on Extending 
Components at Flash in the Can in april.  You can also either find my 
Flash source and tweak it to work with Flex, or hope someone else builds 
it for you..  but these are the types of high-quality examples and 
useful code snippets that you'll see in Flex by Example.  ;-)

-d





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hnqti2h/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123032250/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Input formatting

2005-08-02 Thread James
This works really well for a formatted a display, but not for input, the
input is in/out from a web service is there something I can do about binding
the data and using the format() function you have to check the data before
sending/displaying the data?


JT

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aldo Bucchi
Sent: Tuesday, August 02, 2005 2:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Input formatting

Take a look at the phone formatter!

http://livedocs.macromedia.com/flex/15/asdocs_en/mx/formatters/PhoneFormatte
r.html



On 8/2/05, James [EMAIL PROTECTED] wrote:
  
  
 
 Hello All 
 
   
 
 Anybody figure out to to-do input formatting: 
 
   
 
 Exam: I want to save a phone number as 9991234567 
 
 But I want it to appear on input: (999) 123-4567 
 
   
 
 Any help would be appreciated 
 
   
 
 JT 
  
  
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
  
  
  
  YAHOO! GROUPS LINKS 
  
  
  Visit your group flexcoders on the web.
   
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  
  
  
 
 
  
  To ensure compliance with requirements imposed by the IRS, we inform you
 that any U.S. federal tax advice contained in this document (including any
 attachments) is not intended or written to be used, and cannot be used,
for
 the purpose of (i) avoiding penalties under the Internal Revenue Code or
 (ii) promoting, marketing or recommending to another party any transaction
 or matter addressed herein.
  
  This email may contain confidential and privileged material for the sole
 use of the intended recipient(s). Any review, use, distribution or
 disclosure by others is strictly prohibited. If you are not the intended
 recipient (or authorized to receive for the recipient), please contact the
 sender by reply email and delete all copies of this message.
  
  To reply to our email administrator directly, send an email to
  [EMAIL PROTECTED]
  
  Littler Mendelson, P.C.
  http://www.littler.com
  
  


-- 
: Aldo Bucchi :
mobile (56) 8 429 8300



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 







 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hbgmh02/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123032256/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/