That was it.  I changed it to add it programmatically if it is valid, rather
than always adding it only to turn around and delete it.

Thanks!

On Thu, Apr 10, 2008 at 11:06 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>    That stack implies that the initialized flag never got set or got
> reset.  Is it possible that it got reset?  Could you be removing those tabs
> before they are fully initialized?
>
>
>  ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dennis Falling
> *Sent:* Thursday, April 10, 2008 3:22 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] "Multiple sets of visual children have been
> specified for this component"
>
>
>
> 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::setDocumentDescriptor()[C:\Program<http://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor%28%29%5bC:/Program>Files\Adobe\Flex
>  Builder 2 Plug-in\Flex SDK
> 2\frameworks\source\mx\core\Container.as:3460]
>     at
> com.view.devices::DeviceDetailVQMInterfacesTab/initialize()[C:\chicago\Release1\web\flex\ChicagoGui\com\view\devices\DeviceDetailVQMInterfacesTab.mxml:0]
>     at mx.core::UIComponent/
> http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\Program<http://www.adobe.com/2006/flex/mx/internal::childAdded%28%29%5bC:/Program>Files\Adobe\Flex
>  Builder 2 Plug-in\Flex SDK
> 2\frameworks\source\mx\core\UIComponent.as:4838]
>     at mx.core::Container/
> http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\Program<http://www.adobe.com/2006/flex/mx/internal::childAdded%28%29%5bC:/Program>Files\Adobe\Flex
>  Builder 2 Plug-in\Flex SDK
> 2\frameworks\source\mx\core\Container.as:3346]
>     at mx.core::Container/addChildAt()[C:\Program Files\Adobe\Flex Builder
> 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\Container.as:2281]
>     at
> com.view.devices::DeviceDetailPanel/toggleVqm()[C:\chicago\Release1\web\flex\ChicagoGui\com\view\devices\DeviceDetailPanel.mxml:84]
>     at 
> Function/http://adobe.com/AS3/2006/builtin::apply()<http://adobe.com/AS3/2006/builtin::apply%28%29>
>     at mx.core::UIComponent/callLaterDispatcher2()[C:\Program
> Files\Adobe\Flex Builder 2 Plug-in\Flex SDK
> 2\frameworks\source\mx\core\UIComponent.as:7975]
>     at mx.core::UIComponent/callLaterDispatcher()[C:\Program
> Files\Adobe\Flex Builder 2 Plug-in\Flex SDK
> 2\frameworks\source\mx\core\UIComponent.as:7918]
>
>  On Wed, Apr 9, 2008 at 4:16 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Please post the entire stack trace.
>
>
>
> You should be able to do it.
>
>
>
> Also, I think SuperTabNavigator can hide tabs.  Google for it.
>
>
>  ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dennis Falling
> *Sent:* Wednesday, April 09, 2008 12:20 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] "Multiple sets of visual children have been
> specified for this component"
>
>
>
> I'm trying to programmatically hide/show a tab in an interface.  I found
> that there isn't a way to toggle visibility/include in layout, so decided to
> remove it when it's not applicable and add it back when it is.
>
> When I try to add it back, though, I get the error *"Multiple sets of
> visual children have been specified for this component" *and the add
> fails.  I'm trying to add it back to the same element I removed it from, so
> what am I doing wrong?  Is there a better way to do this, this feels like a
> hack.
>
> Thanks!
>
>
>
>  
>

Reply via email to