# Stop(); won't stop - i've had it

**URL:** <https://forum.kirupa.com/t/stop-wont-stop-ive-had-it/235421>\
**Category:** Uncategorized\
**Created:** [August 10, 2007, 8:25pm UTC](https://forum.kirupa.com/t/stop-wont-stop-ive-had-it/235421 "2007-08-10T20:25:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![project107](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@project107](https://forum.kirupa.com/u/project107)\
**Post date:** [August 10, 2007, 8:25pm UTC](https://forum.kirupa.com/t/stop-wont-stop-ive-had-it/235421/1 "2007-08-10T20:25:13Z")

</div>

Hello, friends. I’m creating a mailing list and I have everything I think I need, except for a minor detail that turned major.

My submit button has a function to check for an email address and make sure that the user actually entered something. I have a stop(); action in an ‘if’ statement and it simply won’t stop. I you feel like taking a look, I’d really appreciate it. Cheers! 🍺

```auto

form.email_txt.text = "Your email address";
form.email_txt.onSetFocus = function(){
    form.email_txt.text = "";
}
form.email_txt.onKillFocus = function(){
    if(form.email_txt.text == "" || form.email_txt.text == undefined){
        form.email_txt.text = "Your email address";
    }
}
// **********************************
// ********bttn props***************
// **********************************
    send_bttn.onRelease = function(){
    if(form.email_txt.text == "" || form.email_txt.text == undefined || form.email_txt.text == "Your email address"){
        form.email_txt.text = "You didn't enter anything...";
        trace("i should stop here but i won't!");
        stop();
    }
    var searchString:String = form.email;
    var index:Number;
    index = searchString.indexOf("@");
    // trace(index);
    if(index == -1){
        form.email_txt.text = "Seriously, don't be an ***";
        stop();
    }
    if(index >=3){
    play();
    }
}
stop();

```
