# Loading swfs into targets

**URL:** <https://forum.kirupa.com/t/loading-swfs-into-targets/3589>\
**Category:** programming\
**Created:** [January 22, 2002, 4:12am UTC](https://forum.kirupa.com/t/loading-swfs-into-targets/3589 "2002-01-22T04:12:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 22, 2002, 4:12am UTC](https://forum.kirupa.com/t/loading-swfs-into-targets/3589/1 "2002-01-22T04:12:49Z")

</div>

I am trying to load a swf into a “video box”, (just a simple square graphic) within another swf movie. I have named the instance of the box “insert” and have inserted the load movie scripting commands. However, the movie doesn’t load within the bounds of my target “insert.” No matter what I seem to do…it ends up loading off center with in the box. Do I need to insert \_x and \_values for the center of my loaded swf to hit the center of my “video box”?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 22, 2002, 6:55am UTC](https://forum.kirupa.com/t/loading-swfs-into-targets/3589/2 "2002-01-22T06:55:27Z")

</div>

This is a common problem for people trying this for the first time.  
The way to solve this is to edit the center registration point of the movie clip you are loading the movie into, to the upper left corner.  
Menu option “modify/transform/edit center”.

Also, you should probebly change the name of that instance… I don’t know if “insert” is one of flash’s reserved words or not… but there are a couple of words which flash uses in action script, that you specificaly cannot use for names of objects.
