pop up - Flex 4 addPopUp throwing error: " ArgumentError: Undefined state 'inactive' " -
pop up - Flex 4 addPopUp throwing error: " ArgumentError: Undefined state 'inactive' " -
i trying seemingly simple. open pop-up. else error?
var mytitlewindow = new titlewindow(); mytitlewindow.title = "my window title"; mytitlewindow.width = 220; mytitlewindow.height = 150; popupmanager.addpopup(mytitlewindow, flexglobals.toplevelapplication displayobject, true); argumenterror: undefined state 'inactive'. @ mx.core::uicomponent/getstate() @ mx.core::uicomponent/findcommonbasestate() @ mx.core::uicomponent/commitcurrentstate() @ mx.core::uicomponent/commitproperties() @ spark.components.supportclasses::groupbase/commitproperties() @ spark.components::group/commitproperties() @ mx.core::uicomponent/validateproperties() @ mx.managers::layoutmanager/validateclient() @ mx.managers::popupmanagerimpl/addpopup() @ mx.managers::popupmanager$/addpopup()
you can't utilize top-level application "parent" argument popup of class (titlewindow) top-level application hasn't imported when creating pop-up within module. going utilize module if need application parent, here super-lame work-around: add together instance of titlewindow main application.
private var oneverylameworkaroundforparentingpopup:titlewindow; http://forums.adobe.com/thread/713069
flex pop-up
Comments
Post a Comment