# Load movie - keep orig. cords? \[MX\]

**URL:** <https://forum.kirupa.com/t/load-movie-keep-orig-cords-mx/60895>\
**Category:** flash\
**Created:** [August 13, 2004, 2:51pm UTC](https://forum.kirupa.com/t/load-movie-keep-orig-cords-mx/60895 "2004-08-13T14:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryall](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Ryall](https://forum.kirupa.com/u/Ryall)\
**Post date:** [August 13, 2004, 2:51pm UTC](https://forum.kirupa.com/t/load-movie-keep-orig-cords-mx/60895/1 "2004-08-13T14:51:57Z")

</div>

[MX] I’m loading an infinitly scrolling swf into my main swf. When it loads however it doesn’t work properly, because all the pixel values in the origonal code do not match for its location in the main movie. I know I can change the AS with new value and make it work, but I am wondering if there is another way. I’d like to be able to move it around and always have it work without changing it. Is there a way I can have the loaded swf retain its OWN origonal x,y cords? or some other method of doing this?  
Thanks guys.

Peace

---

<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:** [August 13, 2004, 5:52pm UTC](https://forum.kirupa.com/t/load-movie-keep-orig-cords-mx/60895/2 "2004-08-13T17:52:20Z")

</div>

Here is the code in the swf that Im loading into the main swf, just a simple infinite menu:

```auto

onClipEvent (load)
{
   xcenter=125;
   speed=1/10;
}
onClipEvent (enterFrame)
{
if (_root._xmouse < 33 | _root._xmouse > 218 | _root._ymouse < 18 | _root._ymouse > 62) speed=0;
	else speed=1/10;
   var distance=_root._xmouse-xcenter;
   _x-=(distance*speed);
   if (_x > 0) _x=-893;
   if (_x < -893) _x=0;
   
}

```

Now when it gets loaded in, all those numeric values dont work anymore, because its new position in main has changed its location. I want this code to be refering to the position reletive to itself, not the new swf it is loaded into. I’ve tried different ways of targeting x and y, but havent gotton it to work. Anyone know what to do here?

Help would be greatly appreciated. Thanks.

Peace

---

<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:** [August 14, 2004, 3:09pm UTC](https://forum.kirupa.com/t/load-movie-keep-orig-cords-mx/60895/3 "2004-08-14T15:09:08Z")

</div>

anyone have an idea?
