# Problem in using button to stop an embedded video

**URL:** <https://forum.kirupa.com/t/problem-in-using-button-to-stop-an-embedded-video/232384>\
**Category:** Uncategorized\
**Created:** [July 13, 2007, 9:18am UTC](https://forum.kirupa.com/t/problem-in-using-button-to-stop-an-embedded-video/232384 "2007-07-13T09:18:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex298](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@alex298](https://forum.kirupa.com/u/alex298)\
**Post date:** [July 13, 2007, 9:18am UTC](https://forum.kirupa.com/t/problem-in-using-button-to-stop-an-embedded-video/232384/1 "2007-07-13T09:18:07Z")

</div>

Hello,

I am using Flash MX 2004.

I have an embedded video in Layer 1. I create a new Layer 2 and wish to add a button to stop the embedded video.

I change the Instance Name of the embedded video to my\_video. I then add the following ActionScript to the button:

on(click) {  
my\_video.stop();  
}

However when I tested the movie, the button is not working. What is the problem?

Thanks and best regards

Alex
