# Set position of external mc from within main flash file

**URL:** <https://forum.kirupa.com/t/set-position-of-external-mc-from-within-main-flash-file/324856>\
**Category:** Uncategorized\
**Created:** [September 12, 2011, 2:38pm UTC](https://forum.kirupa.com/t/set-position-of-external-mc-from-within-main-flash-file/324856 "2011-09-12T14:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![littlerach](https://avatars.discourse-cdn.com/v4/letter/l/6de8d8/32.png) [@littlerach](https://forum.kirupa.com/u/littlerach)\
**Post date:** [September 12, 2011, 2:38pm UTC](https://forum.kirupa.com/t/set-position-of-external-mc-from-within-main-flash-file/324856/1 "2011-09-12T14:38:31Z")

</div>

Hi There,

I’m loading a swf (‘test2.swf’) into a ‘holder’ mc in a main fla file called ‘main’. How can I set the y position of a movie clip ‘\_1’ inside the external swf test2 from the main swf?

```auto
var loaderLake:Loader = new Loader();

function loadLake(swf:String):void{
    SWFAddress.setValue("Test");
    holder.addChild(loaderLake);
    
    var newSWFRequestL:URLRequest = new URLRequest("test2.swf");
    loaderLake.load(newSWFRequestL);
    loaderLake.x = Xpos;
    loaderLake.y = Ypos;
    holder.addChild(loaderLake);
}

```

thanky!
