# Play movie button

**URL:** <https://forum.kirupa.com/t/play-movie-button/7013>\
**Category:** Uncategorized\
**Created:** [October 22, 2002, 1:11am UTC](https://forum.kirupa.com/t/play-movie-button/7013 "2002-10-22T01:11:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://forum.kirupa.com/u/sebastien)\
**Post date:** [October 22, 2002, 1:11am UTC](https://forum.kirupa.com/t/play-movie-button/7013/1 "2002-10-22T01:11:01Z")

</div>

i have a button … and i want it to play a movie when i RELEASE the mouse1 key

after the movie is done playing , i wanna be able to click on other buttons to view other clips

i.e.

if i click on a button Z ----\> play movie1  
if i click on a button Y -----\> play movie2

---

<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:** [October 22, 2002, 2:55am UTC](https://forum.kirupa.com/t/play-movie-button/7013/2 "2002-10-22T02:55:02Z")

</div>

Frame 1 has a stop(); action with your buttons.

Frame 2 has the first animation.

The animation starts on frame 2 and ends on frame 22.

Frame 22 has a gotoAndStop(1) action to go back to the buttons.

Second animation starts on frame 23.

Second animation ends on 43.

Frame 43 has a gotoAndStop(1) action to go back to the buttons.

Button for first animation has this action …

on (release) {  
gotoAndPlay(2);  
}

And the button for second animation has this action …

on (release) {  
gotoAndPlay(23);  
}

I hope this point in a direction helps you.

---

<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:** [October 22, 2002, 7:24pm UTC](https://forum.kirupa.com/t/play-movie-button/7013/3 "2002-10-22T19:24:31Z")

</div>

i already have an .avi made , i want a button that will play that avi when i press on it.

---

<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:** [October 22, 2002, 7:35pm UTC](https://forum.kirupa.com/t/play-movie-button/7013/4 "2002-10-22T19:35:54Z")

</div>

Oh, I have never worked with AVIs imported into Flash so I can’t help you there.
