[FLEX] changing a loader judging on what is loaded

Hello,

I’m sort of new to flex and right now i’m setting up the stage.

  1. i have a combo box that feature 3 different import methods
  2. i have an input field for an URL

Now you can import:

  1. a Flickr page and it will display the main image from that page in the flex project.
  2. a YouTube movie with it’s own player
  3. a Screenshot from any url you input using an aspx application

Now my question is:
Since i need to use two different components to display the things loaded, how do i switch from a VideoDisplay if the youtube import is selected to a SWFLoader if the other 2 import options are selected?