1 Reply Latest reply on Feb 25, 2009 7:40 PM by Newsgroup_User

    Loading a swf into a UIComponent

    SiHoop Level 1
      I've been trying to load a swf into a Flex file and ran into a comment from Amy Blankenship about the need to load the swf into a UIComponent.

      http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_7.html

      This makes sense, but I really don't understand when I need to use a UIComponent, an IUIComponent, which containers implement IUIComponent, and so forth.

      My question is: Where can I find a source that explains the relationships between containers and components?

      Text
        • 1. Re: Loading a swf into a UIComponent
          Level 7

          "SiHoop" <webforumsuser@macromedia.com> wrote in message
          news:go4u0p$kg8$1@forums.macromedia.com...
          > I've been trying to load a swf into a Flex file and ran into a comment
          > from Amy
          > Blankenship about the need to load the swf into a UIComponent.
          >
          >
          > http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_
          > 7.html
          >
          > This makes sense, but I really don't understand when I need to use a
          > UIComponent, an IUIComponent, which containers implement IUIComponent, and
          > so
          > forth.
          >
          > My question is: Where can I find a source that explains the relationships
          > between containers and components?
          >
          >
          > http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_
          > 7.html

          Anything that inherits from UIComponent will implement IUIComponent.
          Additionally UIMovieClip also implements this. You also have the choice of
          extending, say, Sprite, and adding on the additional properties and methods
          necessary to implement the interface.

          All containers (Canvas, Box, VBox, HBox) inherit from UIComponent and so
          will implement this interface. However, a container cannot accept as a
          child anything that does NOT implement this interface (Sprite, MovieClip,
          DisplayObject, and I think TextField and maybe a few more).

          HTH;

          Amy