# Dynamically creating MCs to load external JPGs into

**URL:** https://forum.kirupa.com/t/dynamically-creating-mcs-to-load-external-jpgs-into/128827
**Category:** Uncategorized
**Created:** [November 16, 2004, 5:06pm UTC](https://forum.kirupa.com/t/dynamically-creating-mcs-to-load-external-jpgs-into/128827 "2004-11-16T17:06:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mira](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mira](https://forum.kirupa.com/u/mira)
#### Post date: [November 16, 2004, 5:06pm UTC](https://forum.kirupa.com/t/dynamically-creating-mcs-to-load-external-jpgs-into/128827/1 "2004-11-16T17:06:08Z")

</div>

Hi,

I’m trying to create a slideshow that loads pics (jpg) from an external folder (“pics/”) into dynamically created MCs.

What I want is for the script to detect how many pics are in the folder (for future changes), create as many instances of the MC, and load the pics into each one. The MCs will need to take the W and H of the pics, and line up next to each other. This last part is not as important, I’m just wondering how to determine the number of pics in the folder. Do I need XML or will AS 1.0 or 2.0 do this?

Thanks!  
mira
