Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
When declarate a currencyFormatter object in <fx:declaration> and don't set any locale ,
then get its properties , like currencySymbol or currencyISOCode , it will cause ReferenceError.
I attached a simple code to reproduce this problem, please run it as debug mode .
The output error is like below :
ReferenceError: Error #1069: Property currencySymbol not found on flash.globalization.NumberFormatter and there is no default value.
at spark.formatters::CurrencyFormatter/get currencySymbol()[C:\GaoMingzhu\Perforce\redcloud.corp.adobe.com_1820\mgao-redcloud1820-win-2\esg\flex\sdk\gs\frameworks\projects\spark\src\spark\formatters\CurrencyFormatter.as:246]
at TestBug/init()[C:\GaoMingzhu\Workspace\flex\TestApp\src\TestBug.mxml:29]
at TestBug/___TestBug_Application1_creationComplete()[C:\GaoMingzhu\Workspace\flex\TestApp\src\TestBug.mxml:5]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\GaoMingzhu\Perforce\redcloud.corp.adobe.com_1820\mgao-redcloud1820-win-2\esg\flex\sdk\gs\frameworks\projects\framework\src\mx\core\UIComponent.as:12896]
at mx.core::UIComponent/set initialized()[C:\GaoMingzhu\Perforce\redcloud.corp.adobe.com_1820\mgao-redcloud1820-win-2\esg\flex\sdk\gs\frameworks\projects\framework\src\mx\core\UIComponent.as:1667]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\GaoMingzhu\Perforce\redcloud.corp.adobe.com_1820\mgao-redcloud1820-win-2\esg\flex\sdk\gs\frameworks\projects\framework\src\mx\managers\LayoutManager.as:801]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[C:\GaoMingzhu\Perforce\redcloud.corp.adobe.com_1820\mgao-redcloud1820-win-2\esg\flex\sdk\gs\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1124]