0 Replies Latest reply on Jun 6, 2013 1:41 PM by Hard_Rush

    Error #1010 Change mx:ComboBox FTETextField/UITextFormat

    Hard_Rush

      In my application (CS Extension Builder) have a tag <mx:ComboBox>

      In the change event, an exception is thrown in the console

      I realized that in the project properties, menu FLEX COMPILER COMPILER OPTIONS has an item:

      - Use Flash Text Engine in MX Components

      By removing est item above, the component works.

      I tried to use:

      ComboBox.direction
      ComboBox.textFieldClass = "mx.core ....
      ComboBox.textInputClass = "mx.controls ....

      And nothing

      Could you help me?

       

       

      CHANGE <mx:ComboBox> In CSExntensionBuilder

       

      TypeError: Error #1010: A term is undefined and has no properties.

                at mx.core::FTETextField/composeText()[E:\dev\hero_private\frameworks\projects\spark\src\mx\ core\FTETextField.as:2772]

                at mx.core::FTETextField/validateNow()[E:\dev\hero_private\frameworks\projects\spark\src\mx\ core\FTETextField.as:2531]

                at mx.core::FTETextField/getLineMetrics()[E:\dev\hero_private\frameworks\projects\spark\src\ mx\core\FTETextField.as:2163]

                at mx.core::UITextFormat/measure()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UI TextFormat.as:595]

                at mx.core::UITextFormat/measureText()[E:\dev\trunk\frameworks\projects\framework\src\mx\cor e\UITextFormat.as:497]

                at mx.core::UIComponent/measureText()[E:\dev\trunk\frameworks\projects\framework\src\mx\core \UIComponent.as:8885]

                at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutContents()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Button.as:2258]

                at mx.controls::Button/updateDisplayList()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\Button.as:1793]

                at mx.core::UIComponent/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src \mx\core\UIComponent.as:8989]

                at mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:736]

                at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:819]

                at mx.managers::LayoutManager/validateNow()[E:\dev\trunk\frameworks\projects\framework\src\m x\managers\LayoutManager.as:878]

                at mx.controls::ComboBox/displayDropdown()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\ComboBox.as:1869]

                at mx.controls::ComboBox/downArrowButton_buttonDownHandler()[E:\dev\hero_private\frameworks\ projects\mx\src\mx\controls\ComboBox.as:2027]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]

                at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Button.as:2483]

                at mx.controls::Button/mouseDownHandler()[E:\dev\hero_private\frameworks\projects\mx\src\mx\ controls\Button.as:2744]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]

                at mx.managers::WindowedSystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\pro jects\airframework\src\mx\managers\WindowedSystemManager.as:2344]

       

      [DEBUG - PRESS F8]

       

      RangeError: The supplied index is out of bounds.

                at mx.core::FTETextField/getLineMetrics()[E:\dev\hero_private\frameworks\projects\spark\src\ mx\core\FTETextField.as:2169]

                at mx.core::UITextFormat/measure()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UI TextFormat.as:595]

                at mx.core::UITextFormat/measureText()[E:\dev\trunk\frameworks\projects\framework\src\mx\cor e\UITextFormat.as:497]

                at mx.core::UIComponent/measureText()[E:\dev\trunk\frameworks\projects\framework\src\mx\core \UIComponent.as:8885]

                at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::layoutContents()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Button.as:2258]

                at mx.controls::Button/updateDisplayList()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\Button.as:1793]

                at mx.core::UIComponent/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src \mx\core\UIComponent.as:8989]

                at mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:736]

                at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:819]

                at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]

       

       

      [DEBUG - PRESS F8]

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

                at mx.controls::ComboBox/displayDropdown()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\ComboBox.as:1755]

                at mx.controls::ComboBox/close()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\ ComboBox.as:1655]

                at mx.controls::ComboBox/focusOutHandler()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\ComboBox.as:2092]

                at flash.display::Stage/set focus()

                at mx.managers::FocusManager/deactivateWindowHandler()[E:\dev\hero_private\frameworks\projec ts\framework\src\mx\managers\FocusManager.as:750]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\sr c\mx\core\UIComponent.as:13128]

                at mx.core::Window/nativeWindow_deactivateHandler()[E:\dev\hero_private\frameworks\projects\ airframework\src\mx\core\Window.as:3609]

         

      [DEBUG - PRESS F8]

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

                at mx.controls::ComboBox/displayDropdown()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\ComboBox.as:1755]

                at mx.controls::ComboBox/close()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\ ComboBox.as:1655]

                at mx.controls::ComboBox/focusOutHandler()[E:\dev\hero_private\frameworks\projects\mx\src\mx \controls\ComboBox.as:2092]

                at flash.display::Stage/set focus()

                at mx.managers::FocusManager/deactivateWindowHandler()[E:\dev\hero_private\frameworks\projec ts\framework\src\mx\managers\FocusManager.as:750]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]

                at com.adobe.csxs.core::CSExtension/nativeWindow_deactivateHandler()