Runtime error while compiling flex application with ANT

I am using the licensed version of Flex Builder Pro to develop an application.

I have compiled swc and generated swf using ANT tasks. It also contains an extended data grid. When this app is available I get a runtime error and it won't load.

TypeError: Error # 1007: Attempting to instantiate a non-constructor. in mx.controls :: AdvancedDataGridBaseEx / getSeparator () in mx.controls :: AdvancedDataGridBaseEx / createHeaderSeparators () in mx.controls :: AdvancedDataGrid / createHeaderSeparators () in mx.controls :: AdvancedDataGridBaseEx) / drawSeparators AdvancedDataGridBaseEx / updateDisplayList () in mx.controls :: AdvancedDataGrid / updateDisplayList () in mx.controls.listClasses :: AdvancedListBase / validateDisplayList () in mx.managers :: LayoutManager / validateDisplayList () in mx.managers / LayoutPsedation ) in function / http://adobe.com/AS3/2006/builtin::apply ()     in mx.core :: UIComponent / callLaterDispatcher2 () in mx.core :: UIComponent / callLaterDispatcher ()

I am adding datavisualization.swc and datavisualization_rb.swc in the build path.

How can I compile my application without any runtime errors?

Please, help.

+2


source to share


3 answers


Include swcs in the library path as shown here .



0


source


Maybe this helps: http://kb2.adobe.com/cps/403/kb403121.html



0


source


Coincidentally, I had the same error a couple of days ago. The source of this problem was a library against which I built, which was statically linked to an older version of the datavisualization libraries. Usually, libraries should only be compiled for other libraries using the external library compiler option, but this library was not compiled correctly.

Thus, the library contained older pieces of data that referenced code in the library, while my code referenced newer pieces from the datavisualization library itself. The result is a mix of older and newer data classes at runtime.

So check out the SWCs you included in your library path. You can extract them using the ZIP tool. Then you will find the catalog.xml file. Find mx / controls / AdvancedDataGrid in this file. If you can see it in the catalog, you have found a fake library.

0


source







All Articles