Flash statement Problem

Hi, im working on this little app where the user has to select the appropriate fields and cant move onto the next screen unless the required fields are selected. However when i enter text in the “or Total” and not in the “Per User” field,the next button only allows the user to move on after the second click when it should be on the initial click. The output displays false on the first click then true on the second click…which leads me to believe that the first click sets it to true then the second click allows you to move on.

Here is the code:

 on (release) {
    

    if (companyname_tx.text == "" or companyname_tx.text == undefined) {
        this.completed = false;
        mand01.gotoAndStop(2);
    } else {
        mand01.gotoAndStop(1);
    }
    if (yourname_tx.text == "" or yourname_tx.text == undefined) {
        this.completed = false;
        mand02.gotoAndStop(2);
    } else {
        mand02.gotoAndStop(1);
    }
    if (email_tx.text == "" or email_tx.text == undefined) {
        this.completed = false;
        mand03.gotoAndStop(2);
    } else {
        mand03.gotoAndStop(1);
    }
    if (telephone_tx.text == "" or telephone_tx.text == undefined) {
        this.completed = false;
        mand04.gotoAndStop(2);
    } else {
        mand04.gotoAndStop(1);
    }
    if (jobtitle_tx.text == "" or jobtitle_tx.text == undefined) {
        this.completed = false;
        mand05.gotoAndStop(2);
    } else {
        mand05.gotoAndStop(1);
    }
    if (users_tx.text == "" or users_tx.text == undefined) {
        this.completed = false;
        mand06.gotoAndStop(2);
    } else {
        mand06.gotoAndStop(1);
    }
    if (total_tx.text == "" or total_tx.text == undefined) {
        if (cpu_tx.text == "" or cpu_tx.text == undefined) {
            this.completed = false;
            mand07.gotoAndStop(2);
        } else {
            mand07.gotoAndStop(3);
        }
        if (Industry_drop.selectedItem.data == 1) {
            this.completed = false;
            mand08.gotoAndStop(2);
        } else {
            mand08.gotoAndStop(1);
        }
    }
    trace(this.completed);
    if (this.completed) {
        _root.companyname = companyname_tx.text;
        _root.yourname = yourname_tx.text;
        _root.email = email_tx.text;
        _root.telephone = telephone_tx.text;
        _root.jobtitle = jobtitle_tx.text;
        _root.users = int(users_tx.text);
        _root.cpu = int(cpu_tx.text);
        _root.total = int(total_tx.text);
        _root.industry = Industry_drop.selectedItem.data;
        _root.industryLabel = Industry_drop.selectedItem.label;
        this.selectedItem.label.completed = true;
        
        gotoAndStop("Two");
        
    }
    trace("traced the label to be "+Industry_drop.selectedItem.label);
    if(Industry_drop.selectedItem.data >1 && (root.total = int(total_tx.text)) || (root.cpu = int(cpu_tx.text))){
            this.completed = true;
            }
    
            
}

Can anyone shed some light onto what could be the problem here?

Thank you