# \[FLEX\] changing a loader judging on what is loaded

**URL:** https://forum.kirupa.com/t/flex-changing-a-loader-judging-on-what-is-loaded/254698
**Category:** flash
**Created:** [March 14, 2008, 11:30am UTC](https://forum.kirupa.com/t/flex-changing-a-loader-judging-on-what-is-loaded/254698 "2008-03-14T11:30:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Raziel](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@Raziel](https://forum.kirupa.com/u/Raziel)
#### Post date: [March 14, 2008, 11:30am UTC](https://forum.kirupa.com/t/flex-changing-a-loader-judging-on-what-is-loaded/254698/1 "2008-03-14T11:30:40Z")

</div>

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?
