How to fix this problem?

Hello
I have a 2 flash movies. movie1.swf and movie2.swf(movie2.swf - is a feedback form)

movie2.swf loads into movie1.swf .
when I am opening dirrectly movie2.swf from my web site e-mail form is works fine. It is sending the e-mail.
But when I opening movie1.swf it is loading the movie2.swf but when I press the send button it is not sending the message.
Does anybody know what should I do?
I think The target is inserted wrong in my movie2.swf

movie1.swf

 loadMovie("subdata/movie2.swf", "_root.main.pages.preloader");
stop ();

in movie2.swf [send] button actions:

on (release) {
    //    Now import the variables we
    //    need to send in this movie clip
    sender_mail = _root.Semail.text
    sender_name = _root.Sname.text
    sender_subject = _root.Ssubject.text
    sender_message = _root.Smessage.text
    //    all the vars we just imported
    //    will be sent via POST method now
    loadVariables("sendmail.php",this,"POST");
    //    and when receives the answer from
    //    the server...
    this.onData = function()
    {
        for(var a in this) trace([a,this[a]])
        //    ok, next frame
        this._parent;
        if(this.output=='sent')
        {
            // in case of success
            _root.errTitle = 'Thank You.';
            _root.errType = "Your message has been succesfully sent.";
        } else {
            //    else
            _root.errTitle = "Error!";
            _root.errType = "Attention, an error occurred while processing your message. Please try again later.";
        }
    }
}