Alex, Did some research and this type of issue has come a lot. I addressed by putting in the -keep-all-type-sectors = true compiler argument and now all is well.
Jeff --- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: > > So this is an AIR app? Are you using mx:Window or s:Window? Or have you > subclassed one of those Window components? Is the DataGrid loaded via a > module? It sounds like its moduleFactory is not pointing to the module. > > > On 5/7/10 8:57 AM, "Jeff" <jbarts1...@...> wrote: > > > > > > > Hello, > > I've got a modular application where I popup a TitleWindow for an import > Wizard. From there, I try to open a Window with a DataGrid inside. In > addition to a bunch of cFF font warnings, this error is thrown: > > TypeError: Error #1007: Instantiation attempted on a non-constructor. > at > mx.controls.dataGridClasses::DataGridHeader/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:329] > at > mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8531] > at > mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:932] > at > mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7631] > at > mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:594] > at > mx.controls::DataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1741] > at > mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3962] > at > mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663] > at > mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736] > at > mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] > > The specific line that throws the exception is: > > var headerBGSkin:IFlexDisplayObject = new headerBGSkinClass(); > > Anyone got a clue? I'm able to bring the spreadsheet up in my TitleWindow > without issues, but when I try to put it in its own window. all hell breaks > loose. > > Jeff > > > > > > > -- > Alex Harui > Flex SDK Team > Adobe System, Inc. > http://blogs.adobe.com/aharui >