# Playing a movieclip when hitting a button

**URL:** <https://forum.kirupa.com/t/playing-a-movieclip-when-hitting-a-button/11026>\
**Category:** Uncategorized\
**Created:** [January 10, 2003, 9:09pm UTC](https://forum.kirupa.com/t/playing-a-movieclip-when-hitting-a-button/11026 "2003-01-10T21:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ienjoypie](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@ienjoypie](https://forum.kirupa.com/u/ienjoypie)\
**Post date:** [January 10, 2003, 9:09pm UTC](https://forum.kirupa.com/t/playing-a-movieclip-when-hitting-a-button/11026/1 "2003-01-10T21:09:36Z")

</div>

Another fairly simple question ;p

When i press a button, i want it to play a certain movie clip… not a frame necessarily - just the movie clip… whuts the script for that??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 10, 2003, 9:11pm UTC](https://forum.kirupa.com/t/playing-a-movieclip-when-hitting-a-button/11026/2 "2003-01-10T21:11:37Z")

</div>

on(release) {  
\_root._mymovieclip_.play();  
}  
easy  
just change _mymovieclip_ to the instance name of the movieclip if it’s in \_root, otherwize put the mc hierarchy to the mc!  
e.g. \_root.mymc1.mymc2.play();  
if mymc2 is the mc you want to play and it’s inside mymc1!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 11, 2003, 12:39am UTC](https://forum.kirupa.com/t/playing-a-movieclip-when-hitting-a-button/11026/3 "2003-01-11T00:39:53Z")

</div>

ahhhh i forgot to put in root…duh ;p

thanx a lot =D
