# Cordinate issue

**URL:** <https://forum.kirupa.com/t/cordinate-issue/261706>\
**Category:** flash\
**Created:** [May 30, 2008, 2:04am UTC](https://forum.kirupa.com/t/cordinate-issue/261706 "2008-05-30T02:04:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alten](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@alten](https://forum.kirupa.com/u/alten)\
**Post date:** [May 30, 2008, 2:04am UTC](https://forum.kirupa.com/t/cordinate-issue/261706/1 "2008-05-30T02:04:57Z")

</div>

In AS2 , I have a MC that moves across the stage. When it reaches a certain cordinates I need it to load an external swf . I usually load externals swfs via button event but now I need it to load when it reaches a certain position on the stage . Any help would be cool …Thanks

Alten

---

<div class="post-metadata">

**Author:** ![Ph03nix](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@Ph03nix](https://forum.kirupa.com/u/Ph03nix)\
**Post date:** [May 30, 2008, 3:15am UTC](https://forum.kirupa.com/t/cordinate-issue/261706/2 "2008-05-30T03:15:26Z")

</div>

[quote=alten;2333387]In AS2 , I have a MC that moves across the stage. When it reaches a certain cordinates I need it to load an external swf . I usually load externals swfs via button event but now I need it to load when it reaches a certain position on the stage . Any help would be cool …Thanks

Alten[/quote]

please specify the direction the MC is moving, whether its moving horizontally, vertically, or both, and also the direction. Also, you should specify the coords that you want the code to activate.

---

<div class="post-metadata">

**Author:** ![alten](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@alten](https://forum.kirupa.com/u/alten)\
**Post date:** [May 30, 2008, 3:35am UTC](https://forum.kirupa.com/t/cordinate-issue/261706/3 "2008-05-30T03:35:45Z")

</div>

The mc is moving right to left …ie off the right side of the stage then moves onto the stage …moving left . I am not in front of my production comp right now so the cordinates could be anything …I can change them later

I do appreciate your response greatly .

---

<div class="post-metadata">

**Author:** ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Post date:** [May 30, 2008, 4:43am UTC](https://forum.kirupa.com/t/cordinate-issue/261706/4 "2008-05-30T04:43:54Z")

</div>

[quote=alten;2333430]The mc is moving right to left …ie off the right side of the stage then moves onto the stage …moving left . I am not in front of my production comp right now so the cordinates could be anything …I can change them later

I do appreciate your response greatly .[/quote]

Umm, try:

```auto
onEnterFrame = function () {
    if (mMyClip._x >= 500){
        // do this
    }
}

```

Where 500 is the desired x co-ord, you could make that a variable, etc…
