2 Replies Latest reply on Sep 24, 2010 2:49 PM by oskouidev

    Flex 4: Adding UIComponent to a MovieClip


      How can we add a UIComponent (mx controller) into a movieclip. I am using FLEX 4 (Flash Builder 4)?


      I have <mx:UIComponent> in a mxml file. The UIComponent is basically a Youtube player with all the controls. I am using this UIComponent in a class UPlayer that extends Skinnable Component. (Public class Player extends SkinnableComponent).


      In the main application I am using a Vgroup to add this Youtube Player. But what I actually want to do it to add this YoutubePlayer inside a MovieClip. Whenever I am trying to add this to movieclip - it throws an error that says "Implicit coercion of a value of type  flash.display:MovieClip to an unrelated type mx.core:IVisualElement."


      Could somebody let me know how I add this player to a MovieClip. The application requirement is such - I need to add it to a movieclip. Thanks in advance.