Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-17210

mx:NumberFormatter failed when use localeChain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Formatters
    • Affected OS(s): Windows
      Affected OS(s):
      Language Found: English

    Description

      Steps to reproduce:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCC();">
      <mx:Script>
      <![CDATA[
      import mx.formatters.NumberFormatter;

      private function onCC():void

      { var nf:NumberFormatter = new NumberFormatter(); nf.precision = 2; resourceManager.localeChain = ['zh-Hans']; trace("number:"+nf.format(1/3)); resourceManager.localeChain = ['en_US']; trace("number:"+nf.format(1/3)); }

      ]]
      >
      </mx:Script>
      </mx:WindowedApplication>

      Actual Results:

      number:
      number:0.33

      Expected Results:

      number:0.33
      number:0.33

      Workaround (if any):

      Attachments

        Issue Links

          Activity

            People

              chrsmrtn Chris Martin
              adobejira Adobe JIRA
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: