# Swapping movieclips or something help

**URL:** <https://forum.kirupa.com/t/swapping-movieclips-or-something-help/234984>\
**Category:** Uncategorized\
**Created:** [August 7, 2007, 5:27pm UTC](https://forum.kirupa.com/t/swapping-movieclips-or-something-help/234984 "2007-08-07T17:27:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpnotiqtymes](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hpnotiqtymes](https://forum.kirupa.com/u/hpnotiqtymes)\
**Post date:** [August 7, 2007, 5:27pm UTC](https://forum.kirupa.com/t/swapping-movieclips-or-something-help/234984/1 "2007-08-07T17:27:57Z")

</div>

alrighty what im trying to do which i bet im overlooking something simple is:

i have an empty movie clip which is following the mouse, a custom cursor container…  
what i want to do is load 1 of 2 movie clips into it depending on whether its on the right half of the stage or the left hand…i have a black arrow and a white arrow (ba\_mc and wa\_mc)…  
so when the cursor passes the middle of the stage to the left i want it to load the wa\_mc and when it passes the middle of the stage to the right i want it to load the ba\_mc…

heres the code i was trying among other things…

> 

////////////////cursor code////////////////////////  
Mouse.hide();

/////ac\_mc is used as a container mc for the custom cursor  
/////sets the x and y of the custom cursor container  
ac\_mc.\_x = \_xmouse;  
ac\_mc.\_y = \_ymouse;

/////attaches the custom cursors to the cursor movie clip  
ac\_mc.attachMovie(“whiteArrow\_mc”, “wa\_mc”, 0);  
ac\_mc.attachMovie(“blackArrow\_mc”, “ba\_mc”, 1);

/////reupdates the x and y of custom cursor container to follow the mouse  
ac\_mc.onEnterFrame = function()  
{  
ac\_mc.\_x = \_xmouse;  
ac\_mc.\_y = \_ymouse;

}  
//makes blackarrow visible when on right side of stage…  
if(\_root.ac\_mc.\_x \>= Stage.width/2)  
{  
this.ba\_mc.\_visible = true;  
}  
//makes blackarrow invisible when on left side of stage…  
else if(\_root.ac\_mc.\_x \<= Stage.width/2)  
{  
this.ba\_mc.\_visible = false;  
}

as i said before im sure its something small that im overlooking but ne help would be highly appreciated
