i'm getting 2 runtime errors when i do the following

var pop:Object = mx.managers.PopUpManager.createPopUp(this, 
LoginPopUp, true);

LoginPopUp.mxml looks like this
<?xml version="1.0" encoding="utf-8"?>
<nx:myPanel xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns:nx="*">
        <mx:FormItem label="UserID">
                <mx:TextInput/>
        </mx:FormItem>
        <mx:FormItem label="Password">
                <mx:TextInput/>
        </mx:FormItem>
</nx:myPanel>

and myPanel.mxml looks like this
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml";>
</mx:Panel>

errors - 
TypeError: Error #1009: null has no properties.
        at 
mx.containers::Panel/mx.containers:Panel::updateDisplayList()
        at mx.core::UIComponent/validateDisplayList()
        at mx.core::Container/validateDisplayList()
        at mx.managers::LayoutManager/validateDisplayList()
        at mx.managers::LayoutManager/::doPhasedInstantiation()
        at mx.core::UIComponent/::callLaterDispatcher2()
        at mx.core::UIComponent/::callLaterDispatcher()

-----and ------

Error: Multiple sets of visual children have been specified for this 
component (base component definition and derived component 
definition)
        at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::setDoc
umentDescriptor()
        at myPanel/initialize()
        at LoginPopUp/initialize()
        at mx.managers::SystemManager/::initializeChild()
        at mx.managers::SystemManager/addChild()
        at mx.managers::PopUpManager$/addPopUp()
        at mx.managers::PopUpManager$/createPopUp()
        at test_pop/::getPopup()
        at test_pop/___Button2_click()


not a problem in flex1.5








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to