# How to fix this problem?

**URL:** <https://forum.kirupa.com/t/how-to-fix-this-problem/178590>\
**Category:** flash\
**Created:** [February 12, 2006, 9:05am UTC](https://forum.kirupa.com/t/how-to-fix-this-problem/178590 "2006-02-12T09:05:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NarZee](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@NarZee](https://forum.kirupa.com/u/NarZee)\
**Post date:** [February 12, 2006, 9:05am UTC](https://forum.kirupa.com/t/how-to-fix-this-problem/178590/1 "2006-02-12T09:05:07Z")

</div>

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

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

```

in movie2.swf [send] button actions:

```auto
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.";
        }
    }
}

```
