# Replace AttackMovie

**URL:** <https://forum.kirupa.com/t/replace-attackmovie/304804>\
**Category:** Uncategorized\
**Created:** [February 14, 2010, 12:24pm UTC](https://forum.kirupa.com/t/replace-attackmovie/304804 "2010-02-14T12:24:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohya](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@ohya](https://forum.kirupa.com/u/ohya)\
**Post date:** [February 14, 2010, 12:24pm UTC](https://forum.kirupa.com/t/replace-attackmovie/304804/1 "2010-02-14T12:24:43Z")

</div>

I attachMovie a movie in liabrary to locate the movie clip at (25,25). If there is already a movie clip at (25,25), the new attachMovie movie clip will take the place at (50,50), if there is movie clip at (50,50), the new movie clip will take the place of (100,100). How to add the code to the following:  
on(release){A.attachMovie(“good”,“newgood”,1);} , A is at (25,25).  
on(release){A.attachMovie(“good1”,“newgood1”,1);}
