# Play instance of movie clip

**URL:** <https://forum.kirupa.com/t/play-instance-of-movie-clip/184876>\
**Category:** Uncategorized\
**Created:** [April 8, 2006, 6:39pm UTC](https://forum.kirupa.com/t/play-instance-of-movie-clip/184876 "2006-04-08T18:39:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkatcher](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jkatcher](https://forum.kirupa.com/u/jkatcher)\
**Post date:** [April 8, 2006, 6:39pm UTC](https://forum.kirupa.com/t/play-instance-of-movie-clip/184876/1 "2006-04-08T18:39:51Z")

</div>

hi all - -

i have created a movie clip and want it to play when a particular button is released. i also want to be able to control its x & y coordinates. i tried attachMovie but i don’t think that’s the function for what I’m trying to do. any help would be much appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![Greggeh](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@Greggeh](https://forum.kirupa.com/u/Greggeh)\
**Post date:** [April 8, 2006, 10:41pm UTC](https://forum.kirupa.com/t/play-instance-of-movie-clip/184876/2 "2006-04-08T22:41:24Z")

</div>

myButton.onRealease = function(){  
myMc.play();  
}

myMc.\_x = 10;  
myMc.\_y = 20

---

<div class="post-metadata">

**Author:** ![Intense](https://avatars.discourse-cdn.com/v4/letter/i/dfb087/32.png) [@Intense](https://forum.kirupa.com/u/Intense)\
**Post date:** [April 9, 2006, 4:34am UTC](https://forum.kirupa.com/t/play-instance-of-movie-clip/184876/3 "2006-04-09T04:34:19Z")

</div>

If you don’t want to just “play” it, and are using it in the form of a button, then define your labels within the movie clip and go to the over state upon the rollover.

movieclip.onRollOver = function () {  
gotoAndPlay("\_over")  
}

Where as “\_over” is what you labeled that segment of your clip.

Sorry for the lack of verbosity, half asleep.
