# How to compare and select the right type of file?

**URL:** <https://forum.kirupa.com/t/how-to-compare-and-select-the-right-type-of-file/270007>\
**Category:** Uncategorized\
**Created:** [September 4, 2008, 4:58am UTC](https://forum.kirupa.com/t/how-to-compare-and-select-the-right-type-of-file/270007 "2008-09-04T04:58:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qpixo](https://avatars.discourse-cdn.com/v4/letter/q/c4cdca/32.png) [@qpixo](https://forum.kirupa.com/u/qpixo)\
**Post date:** [September 4, 2008, 4:58am UTC](https://forum.kirupa.com/t/how-to-compare-and-select-the-right-type-of-file/270007/1 "2008-09-04T04:58:18Z")

</div>

Hi all,

Just a quick question, I have one array which contains several files of jpg and gif types.  
ex: var tabImages:Array = new Array(“file\_01.jpg”, “file\_01.gif”, etc.);

I use a dropdown menu list to load each of them and I want to show them on two different movieclips (ex: on left side want to load only: JPG, on right side to load only: GIF)

How can I compare and select the right type of file to load in the right side of MC?

Does anyone have an idea of how to do that?
