# Mx.controls.loader

**URL:** <https://forum.kirupa.com/t/mx-controls-loader/217252>\
**Category:** Uncategorized\
**Created:** [February 24, 2007, 8:53pm UTC](https://forum.kirupa.com/t/mx-controls-loader/217252 "2007-02-24T20:53:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cybershead](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cybershead](https://forum.kirupa.com/u/cybershead)\
**Post date:** [February 24, 2007, 8:53pm UTC](https://forum.kirupa.com/t/mx-controls-loader/217252/1 "2007-02-24T20:53:36Z")

</div>

:ponder: Hi Peeps, Its been a mad few months but i got back to my codeing when i came across a problem using mx.controls.loader (i dont really like to use but hey) I am loading a gallery component in to it and i want to control what xml file loads in to that gallery. How would i code it so that i could control the swf gallery load what xml file i wanted it too.  
When i have this component in main Timeline i use the code

Gallery.contentXML = (“webImages.xml”);

So i use the loader code to load the gallery in the loader

loaderG.contentPath=“testG.swf”

testG being the gallery component, so now it is in the loader how would i talk to it and tell it what XML to load.

Hugz
