# Image array and loader component issues

**URL:** <https://forum.kirupa.com/t/image-array-and-loader-component-issues/180148>\
**Category:** flash\
**Created:** [February 26, 2006, 4:46am UTC](https://forum.kirupa.com/t/image-array-and-loader-component-issues/180148 "2006-02-26T04:46:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DissolutionWIn](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@DissolutionWIn](https://forum.kirupa.com/u/DissolutionWIn)\
**Post date:** [February 26, 2006, 4:46am UTC](https://forum.kirupa.com/t/image-array-and-loader-component-issues/180148/1 "2006-02-26T04:46:21Z")

</div>

im trying to create an array of images and use them in a Loader component. so far ive got this as my code…

SmImgs = [“Images/xpc1.jpg”,“Images/xpc2.jpg”,“Images/xpc3.jpg”,“Images/xpc4.jpg”,“Images/xpc5.jpg”,“Images/xpc6.jpg”,“Images/xpc7.jpg”,“Images/xpc8.jpg”,“Images/xpc9.jpg”,“Images/xpc10.jpg”];  
LgImgs = [“Images/xpc1\_2.jpg”,“Images/xpc2\_2.jpg”,“Images/xpc\_23.jpg”,“Images/xpc4\_2.jpg”,“Images/xpc5\_2.jpg”,“Images/xpc6\_2.jpg”,“Images/xpc7\_2.jpg”,“Images/xpc8\_2.jpg”,“Images/xpc9\_2.jpg”,“Images/xpc10\_2.jpg”]  
IMGList1.contentPath=trace(SmImgs[0])  
MainIMG.contentPath=trace(LgImgs[0]);

it would b even better if i could make it just make the array out of watever was in a certain folder…  
any help?
