# Playing A Movie Clip Using A Button

**URL:** <https://forum.kirupa.com/t/playing-a-movie-clip-using-a-button/140239>\
**Category:** Uncategorized\
**Created:** [March 9, 2005, 12:25pm UTC](https://forum.kirupa.com/t/playing-a-movie-clip-using-a-button/140239 "2005-03-09T12:25:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cr8igster](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@cr8igster](https://forum.kirupa.com/u/cr8igster)\
**Post date:** [March 9, 2005, 12:25pm UTC](https://forum.kirupa.com/t/playing-a-movie-clip-using-a-button/140239/1 "2005-03-09T12:25:48Z")

</div>

I have a movie clip in my library named: Cube1.swf and i want to play this movie clip on the stage when i click on a button that i have on my stage.

I tried adding the following actionscript to the button but i couldn’t get it to work:

on (release) {  
\_root.gotoAndPlay(“Cube1.swf”);  
}

and

on(release) {  
Cube1.swf.gotoandplay(1);  
}

Replies Appreciated, Cheers!!
