# Centering Preloaders To External SWFs

**URL:** <https://forum.kirupa.com/t/centering-preloaders-to-external-swfs/68796>\
**Category:** flash\
**Created:** [October 28, 2004, 11:47pm UTC](https://forum.kirupa.com/t/centering-preloaders-to-external-swfs/68796 "2004-10-28T23:47:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crees](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@crees](https://forum.kirupa.com/u/crees)\
**Post date:** [October 28, 2004, 11:47pm UTC](https://forum.kirupa.com/t/centering-preloaders-to-external-swfs/68796/1 "2004-10-28T23:47:11Z")

</div>

I have a preloading script from the Flash MX 2004 Bible to use on external swfs and I’m trying to figure out how to center my preloader to the external swf. I am able to position both the loaded clip and preloader by setting the \_x and \_y values on each but when I tried to use the width and height of the external file my preloader is placed at 0,0.

I tried obtaining the center point as such:  
\_root.holder\_mc.\_x + \_root.holder\_mc.\_width/2;

I did the same with the height and I can post code if it is needed.

\m/
