Using ZipCodeFormatter to format a 5+4 ZIP Code : ZipCodeFormatter « Data Model « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » ZipCodeFormatterScreenshots 
Using ZipCodeFormatter to format a 5+4 ZIP Code
Using ZipCodeFormatter to format a 5+4 ZIP Code
  

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:XML id="myData">
        <root>
            <contacts>
                <item name="AAA" zipcode="953763233" />
            </contacts>
        </root>
    </mx:XML>
    <mx:ZipCodeFormatter id="fmtZip" formatString="#####-####" />
    <mx:Label text="Zip Code {fmtZip.format(myData.contacts.item.@zipcode)}" />
</mx:Application>

   
    
  
Related examples in the same category
1.Format input with ZipCodeFormatterFormat input with ZipCodeFormatter
2.Custom formatting function accepts a formatting patternCustom formatting function accepts a formatting pattern
w__ww__.__j_a__v__a___2___s__.c___o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.