hi
i'm using flex builder 4.5
my project has:
a main application: calls module
a module: call components
a component has botton. when press button code is:
var mypop: popupcont= popupmanager.createpopup(this, popupcont, true) popupcont;
popupmanager.centerpopup(mypop);
when press button have exception:
typeerror: error #1009: cannot access property or method of null object reference.
@ mx.managers::popupmanagerimpl/http://www.adobe.com/2006/flex/mx/internal::createmodalwindow()[e:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\popupmanagerimpl.as:701]
@ mx.managers::popupmanagerimpl/addpopup()[e:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\popupmanagerimpl.as:400]
@ mx.managers::popupmanagerimpl/createpopup()[e:\dev\4.5.1\frameworks\projects\framework\sr c\mx\managers\popupmanagerimpl.as:229]
@ mx.managers::popupmanager$/createpopup()[e:\dev\4.5.1\frameworks\projects\framework\src\m x\managers\popupmanager.as:139]
@ components.prova::prova/button1_clickhandler()[d:\flex4.5\app\src\components\prova\prova. mxml:17]
@ components.prova::prova/___prova_button1_click()[d:\flex4.5\app\src\components\prova\prov a.mxml:31]
i tried call popup in main application , works fine.
in situation works button in component.
why?
i don't want add reference popup in main application
how do?
thanks in advance
andrea
i solved inserting in main application import mx.managers.popupmanager; popupmanager;
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment