# Flash as2 Help: Movie is being called to wrong X, Y cordinates

**URL:** <https://forum.kirupa.com/t/flash-as2-help-movie-is-being-called-to-wrong-x-y-cordinates/330353>\
**Category:** Uncategorized\
**Created:** [January 7, 2013, 8:12pm UTC](https://forum.kirupa.com/t/flash-as2-help-movie-is-being-called-to-wrong-x-y-cordinates/330353 "2013-01-07T20:12:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Scholz](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Post date:** [January 7, 2013, 8:12pm UTC](https://forum.kirupa.com/t/flash-as2-help-movie-is-being-called-to-wrong-x-y-cordinates/330353/1 "2013-01-07T20:12:49Z")

</div>

Here is my code:  
on (release) {  
attachMovie(“howToPlay”,“howToPlay”,this.getNextHighestDepth());  
howToPlay.\_x = 250;  
howToPlay.\_y = 175;  
howToPlay.\_alpha = 75;  
disableMC(howToPlay);  
attachMovie(“closeBTN”,“closeBTN”,this.getNextHighestDepth());  
closeBTN.\_x = 420;  
closeBTN.\_y = 55;  
closeBTN.onRelease = function() {  
unloadMovie(howToPlay);  
unloadMovie(this);  
};  
}

When the player clicks “instructions”, a movieClip “howToPlay” is called to the stage. Also a button is called to the stage, closeBTN. I wrote in my code where I want the location of the movieClip “howToPlay” and the location of the closeBTN. Seems to work exactly how I wanted it. EXCEPT, when the player clicks the closeBTN button, howToPlay and closeBTN are unloaded and the player can select a different choice: Play Game, Instructions or About. If they player clicks Instructions again, howToPlay and closeBTN are loaded in a completly different location than the first time.

My question is: How do I keep the positions the same everytime the player closes the instructions box and clicks instructions again?

Thanks again!

Jason
