# Externally loaded SWF contact form problem

**URL:** <https://forum.kirupa.com/t/externally-loaded-swf-contact-form-problem/266478>\
**Category:** Uncategorized\
**Created:** [July 21, 2008, 8:24am UTC](https://forum.kirupa.com/t/externally-loaded-swf-contact-form-problem/266478 "2008-07-21T08:24:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kappa](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Kappa](https://forum.kirupa.com/u/Kappa)\
**Post date:** [July 21, 2008, 8:24am UTC](https://forum.kirupa.com/t/externally-loaded-swf-contact-form-problem/266478/1 "2008-07-21T08:24:27Z")

</div>

im using

```auto
stop();
loadVariables("send_email.php?flashmo=" + random(1000), this, "POST");
message_status.text = "sending...";
var i = 0;
function check_status()
{
	if( success == "yes" )
	{
		message_status.text = "Your message was sent successfully!";
		play();
	}
	else if( success == "no" )
	{
		message_status.text = "Your message could not be sent. Please try again.";
		gotoAndStop("stop");;
	}
	if( i >= 20 )
		clearInterval(interval_id);
	i++;
}
var interval_id = setInterval(check_status, 400);

```

to call the php, it works fine as a standalone swf… but once i test it as a loaded swf it all stops working

my branch would look something like

index.swf \> “main” \> “content” \> contact.swf \> “contactmc” \> then all my code is located in a frame within this mc

ive tried \_root \_parent \_level0 through to 3, but i cant seem to get this working  
perhaps im overlooking something

also if it makes any difference i have \_rootlock applied to all my mc’s for the combobox
