I'm echoing the request for an example here because I'm having the
exact same problem. How would you 'add everything meaningfull stuff as
child of that UIComponent', when UIComponent.addChild() has the same
restrictions as the original component I tried adding the MovieClip to?

I also tried adding a MovieClip to a TitleWindow for a popUp instead
of the stage and had the same error.

--- In [email protected], "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Can you post an example please ?
> 
> --- In [email protected], Jonathan Lee <jlee_lee740304@>
> wrote:
> >
> > What I did is just add a UIComponent under the container as a child.
> The add everything meaningful stuff as child of that UIComponent.
> > 
> > 
> > 
> > helihobby <helihobby@> wrote:                               This
> is the exact error I get:
> >  
> >  Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed:
> >  cannot convert flash.display::[EMAIL PROTECTED] to
> mx.core.IUIComponent.) 
> >  
>
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild
> >  
> >   mx.core::Container/addChildAt 
> >   mx.core::Container/addChild 
> >   TestAS12344/setFire 
> >   TestAS12344/onClick 
> >   TestAS12344/__bb_click 
> >  
> >  --- In [email protected], "helihobby" <helihobby@> wrote:
> >  >
> >  > 
> >  > How can I add Sprite / MovieClip to stage without error of not
> >  > UIComponent ?
> >  > 
> >  > Everytine I add a Sprite or MC I get the error ... even if I try to
> >  > cast to a DisplayObject ...
> >  > 
> >  > Any help is greatly appreciated ...
> >  > 
> >  > Sean.
> >  >
> >  
> >  
> >      
> >                                
> > 
> >        
> > ---------------------------------
> > Looking for last minute shopping deals?  Find them fast with Yahoo!
> Search.
> >
>


Reply via email to