# Please Help! - under deadline. \_root problem?

**URL:** <https://forum.kirupa.com/t/please-help-under-deadline--root-problem/259142>\
**Category:** Uncategorized\
**Created:** [May 1, 2008, 1:23pm UTC](https://forum.kirupa.com/t/please-help-under-deadline--root-problem/259142 "2008-05-01T13:23:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grooveon70](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@grooveon70](https://forum.kirupa.com/u/grooveon70)\
**Post date:** [May 1, 2008, 1:23pm UTC](https://forum.kirupa.com/t/please-help-under-deadline--root-problem/259142/1 "2008-05-01T13:23:15Z")

</div>

Hi,

I desperatley need some help from some generous coder. I’ve cobbled together a Flash site using mostly the “cut and paste” method of coding mainly because I don’t know any better.  
I have a main Flash movie with a container that loads external .swf’s and transitions to the next loaded movie when a button is clicked. Ok, everything works great - WRONG. I have a movie that loads called “contact.swf” which is an email contact form using php to send email to my account. This works fine when running it by itself, but when it loads into the main movie, my send button doesn’t do it’s job. I suspect that I’m having a problem with \_root referrences. The code associated with the button in the main movie is:

Actions for inv\_contact\_btn  
on (rollOver) {  
\_root.mouse\_over\_contact\_mc = true;  
}  
on (rollOut) {  
\_root.mouse\_over\_contact\_mc = fstartlse;  
}  
on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “contact”;  
container.loadMovie(“contact.swf”);  
} else if (\_root.currMovie != “contact”) {  
if (container.\_currentframe\>=container.midframe) {  
\_root.currMovie = “contact”;  
container.play();  
}  
}  
}

The code for the “contact.swf” is:

Scene 1  
Actions for Frame 1  
midframe = 13;  
Actions for Frame 13  
stop();  
Actions for Frame 25  
\_root.container.loadMovie(\_root.currMovie+".swf");  
Actions for send  
on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
form.loadVariables(“email.php”, “POST”);  
}  
Actions for arrow  
on(press){  
form.body\_txt.scroll–;  
}  
Actions for arrow  
on(press){  
form.body\_txt.scroll++;  
}  
Actions for form  
onClipEvent(data){  
// show welcome screen  
\_root.nextFrame();  
}  
Actions for back  
on (release) {  
prevFrame();  
}

Now, I’ve found other posts on kirupa and elsewhere that seem to address my problem - but have not had any luck fixing it on my own. Please help if you can, as I suspect that someone smarter than I can spot the error in a matter of minutes!

Thanks  
R:jail:
