Stop a video BTN

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):

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 :stuck_out_tongue:

Can anyone help me with that?