topical media & game development

talk show tell print

lib-as-core-NumberFormatterDemo.mx

lib-as-core-NumberFormatterDemo.mx (swf ) [ flash ] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Module 
          xmlns:mx="http://www.adobe.com/2006/mxml" 
          layout="absolute">
          <mx:Script>
                  <![CDATA[
                          import com.adobe.utils.NumberFormatter;
                  ]]>
          </mx:Script>
          
          <mx:VBox width="100%" height="100%">
                  <mx:HBox>
                          <mx:Label text="Number to be formatted" />
                          <mx:TextInput id="number" text="9"/>
                  </mx:HBox>
                  
                  <mx:Text text="addLeadingZero:{NumberFormatter.addLeadingZero(Number(number.text))}"/>
                  
          </mx:VBox>
  </mx:Module>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.