Component button vs movieclip button

[SIZE=1][/SIZE]Hi
i have component button which has on click function on it. on this function will check for form validation if any error message it will passes to the dynamic text field and then calls the php file this works fine. but when i copy the entire script from the component button and put it on the movie clip button its not working meaning not doing the action what it suppose to do.

some one can help me fix this one??? am attaching my code for both the component button and the movie clip button. take a look at please tell me where am i going wrong.

Thanks[FONT=Arial][SIZE=1]

[/SIZE][/FONT]


//script on component button this works fine// 
on(click){
        /* 
        Modify these reference paths to yours if you
        have changed them. Also modify gb_status
        reference path if required
        */
        yourname = _parent._parent.write.yourname.text;
        youremail = _parent._parent.write.youremail.text;
        yourcomments = _parent._parent.write.yourcomments.text;
        
        // Check variable data
        if (yourname eq "") {
                _parent._parent.write.gb_status.text = "Required: Name";
        } else if (youremail eq "") {
                _parent._parent.write.gb_status.text = "Required: Email Address";
        } else if (!youremail.length || youremail.indexOf("@") == -1 || youremail.indexOf(".") == -1) {
                _parent._parent.write.gb_status.text = "Required: Valid Email Address";
        } else if (yourcomments eq "") {
                _parent._parent.write.gb_status.text = "Required: Comments";
        } else {
                _parent._parent.write.gb_status.text = "Please wait...";
                newEntry = new LoadVars()
                newEntry.ref = this
                newEntry.submit = "Yes" 
                newEntry.yourname = yourname
                newEntry.youremail = youremail 
                newEntry.yourcomments = yourcomments 
                newEntry.sendAndLoad("GuestBook.php?action=write&r="+random(999), newEntry, "POST") 
                newEntry.onLoad = function(success){ 
                        if(success){ 
                                _parent._parent.write.gb_status.text = this.gb_status;
                                _parent._parent.read.loadEntries("Default", 10);
                                // Clear fields
                                _parent._parent.write.yourname.text = "";
                                _parent._parent.write.youremail.text = "";
                                _parent._parent.write.yourcomments.text = "";
                        }
                } 
        }
}
 
// script on movie clip button this is giving problem//
on(release){
        /* 
        Modify these reference paths to yours if you
        have changed them. Also modify gb_status
        reference path if required
        */
        yourname = _parent._parent.write.yourname.text;
        youremail = _parent._parent.write.youremail.text;
        yourcomments = _parent._parent.write.yourcomments.text;
        
        // Check variable data
        if (yourname eq "") {
                _parent._parent.write.gb_status.text = "Required: Name";
        } else if (youremail eq "") {
                _parent._parent.write.gb_status.text = "Required: Email Address";
        } else if (!youremail.length || youremail.indexOf("@") == -1 || youremail.indexOf(".") == -1) {
                _parent._parent.write.gb_status.text = "Required: Valid Email Address";
        } else if (yourcomments eq "") {
                _parent._parent.write.gb_status.text = "Required: Comments";
        } else {
                _parent._parent.write.gb_status.text = "Please wait...";
                newEntry = new LoadVars()
                newEntry.ref = this
                newEntry.submit = "Yes" 
                newEntry.yourname = yourname
                newEntry.youremail = youremail 
                newEntry.yourcomments = yourcomments 
                newEntry.sendAndLoad("GuestBook.php?action=write&r="+random(999), newEntry, "POST") 
                newEntry.onLoad = function(success){ 
                        if(success){ 
                                _parent._parent.write.gb_status.text = this.gb_status;
                                _parent._parent.read.loadEntries("Default", 10);
                                // Clear fields
                                _parent._parent.write.yourname.text = "";
                                _parent._parent.write.youremail.text = "";
                                _parent._parent.write.yourcomments.text = "";
                        }
                } 
        }
}