I have compiled my SWC against 2.0.1 HF 1 (from FB 3) with no errors.
When trying to use this SWC in any Flex 2 project however, I receive a
RTE as soon as the app starts. This happens for projects using 2.0.1
with Hotfix 1, 2 or 3. The error maps to the initProtoChainRoots()
method of the StyleManagerImpl class. Specifically to the following line:

stylesRoot = selectors["global"].addStyleToProtoChain({}, null);

When inspecting the selectors object there is indeed no global
property present, the only properties are ones that correspond to the
styles defined in the defaults.css file of my library project. The
full stack trace is below. Any help is greatly appreciated.

Thanks,
Ben


TypeError: Error #1010: A term is undefined and has no properties.
        at
mx.styles::StyleManagerImpl/initProtoChainRoots()[C:\dev\flex_201_ja\sdk\frameworks\mx\styles\StyleManagerImpl.as:363]
        at
mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\flex_201_ja\sdk\frameworks\mx\styles\StyleManager.as:121]
        at
TestProj/http://www.adobe.com/2006/flex/mx/internal::_TestProj_StylesInit()[D:\ccviews\A326188_fpsa_batch_dev_view\BackOffice\Components\Source\PSA.BatchTool\TestProj\TestProj.mxml:0]
        at
TestProj$iinit()[D:\ccviews\A326188_fpsa_batch_dev_view\BackOffice\Components\Source\PSA.BatchTool\TestProj\TestProj.mxml:0]
        at _TestProj_mx_managers_SystemManager/create()
        at
mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWindow()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:2289]
        at
mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:2214]




Reply via email to