# Stop a video BTN

**URL:** <https://forum.kirupa.com/t/stop-a-video-btn/203928>\
**Category:** flash\
**Created:** [October 15, 2006, 5:59pm UTC](https://forum.kirupa.com/t/stop-a-video-btn/203928 "2006-10-15T17:59:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Almonimus](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Almonimus](https://forum.kirupa.com/u/Almonimus)\
**Post date:** [October 15, 2006, 5:59pm UTC](https://forum.kirupa.com/t/stop-a-video-btn/203928/1 "2006-10-15T17:59:16Z")

</div>

Hi, I’m using a video object and I want to make a stop button, yet pressing stop while the video is paused, will make it play. This is my code (cleaned from overcode of course):

```auto
function stopTrack():Void {
    my_ns.pause(run_url);
    currentTime = 0;
}

```

I need to put an if function before the my\_ns.pause(run\_url); that asks if the movie is played or not. The thing is that, I found this status command and I’m not sure if it’ll help me and how exactly it works. It looks more like a behaviour for errors… didn’t really understand…

I hoped to find **if my\_ns.status = play { … }** usefull, but of course, it’s nonsense for AS 😛

Can anyone help me with that?
