Loading External Swf - Referencing Problem For A PHP Contact Form
hey everyone, i followed the tutorial on "loading external swfs" & for the most part all my other swfs worked fine EXCEPT for my PHP contact form swf. i searched through the forums and learned about using the _parent notation instead of _root & i thought it helped but i'm still having weird problems. when i test my own form swf through the main swf in Flash MX 2004, it works (it proceeds to the thank you message, i get the email, all is good). however when i test it on my actual site on the internet it never proceeds to the thank you message & just sits there so what i was thinking was that it wasnt correctly sending the data to the PHP script? i dont know. i'm in desperate need of you AS guru'si'm going to attach one fla file because the other was too big, but provide a link to the other. original.fla is what i based my form off of which basically is to give you an idea of what the original AS is and mine.fla is the swf i'm loading into my container with the added changes that i needed to make based on the "loading external swfs" tutorial.original.flamy question is would somebody be able to figure out when i need to use all the different notations such as: this, _root, _parent for the swf that gets loaded into the container MC of my main swf?? i'd really like to get this working as soon as possible. i'm hoping someone out there will have a better idea of the correct way of doing the AS in my file. thanks in advance!-Dantai
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading External Swf - Referencing Problem For A PHP Contact Form
hey everyone, i followed the tutorial on "loading external swfs" & for the most part all my other swfs worked fine EXCEPT for my PHP contact form swf. i searched through the forums and learned about using the _parent notation instead of _root & i thought it helped but i'm still having weird problems.
when i test my own form swf through the main swf in Flash MX 2004, it works (it proceeds to the thank you message, i get the email, all is good). however when i test it on my actual site on the internet it never proceeds to the thank you message & just sits there so what i was thinking was that it wasnt correctly sending the data to the PHP script? i dont know. i'm in desperate need of you AS guru's
i'm going to attach one fla file because the other was too big, but provide a link to the other. original.fla is what i based my form off of which basically is to give you an idea of what the original AS is and mine.fla is the swf i'm loading into my container with the added changes that i needed to make based on the "loading external swfs" tutorial.
original.fla
my question is would somebody be able to figure out when i need to use all the different notations such as: this, _root, _parent for the swf that gets loaded into the container MC of my main swf?? i'd really like to get this working as soon as possible. i'm hoping someone out there will have a better idea of the correct way of doing the AS in my file. thanks in advance!
-Dantai
Contact Form In External Swf
I created an email contact form in flash and php, using the files in the following kirupa tutorial:
http://www.kirupa.com/developer/acti..._php_email.htm
this contact form is inside an external swf that loads into a container on the main.swf. The page has transitions etc.
the problem is that I am not able to make the contact form work. Can someone help me????????????? please!!!!!!!!!!!
Enclosed are the zip files for the contact form section and the email.php
if you want to take a look at the site it is:
http://www.tributa.org
Contact Form In External Swf
I created an email contact form in flash and php, using the files in the following kirupa tutorial:
http://www.kirupa.com/developer/acti..._php_email.htm
this contact form is inside an external swf that loads into a container on the main.swf. The page has transitions etc.
the problem is that I am not able to make the contact form work. Can someone help me????????????? please!!!!!!!!!!!
Enclosed are the zip files for the contact form section and the email.php
if you want to take a look at the site it is:
http://www.tributa.org
the files are in:
http://www.kirupa.com/forum/showthread.php?t=207568
AS2 External Contact Form Issue {HELP}
hi guys,
I have a problem that involves an external swf and a contact form, Ive searched goole and couldnt find a solution, so here goes.
Basically the contact form works fine on its own - send the data etc. However when the form is loaded into an external swf none of the form works. It loads in fine, can see everything apart from the label fields which name the fields: name, email, company etc. I havent got a clue what to do. Any help will be greatly appreciated and will as always bring serious kudos.
regards
Container Loading Form On Contact Swf.
question: I have created a email form using components from library however when I load them into a empty movie clip; labeled - container they do not work properly. Another problem is with the alert box for fields left empty doesnt show when user hits submit.
The thing is when I just open the swf. contact and view it everything works fine and dandy however when i open index.swf -> has container_mc -> loads contact.swf, the form messes up. Any ideas yall?
I have also ran into this problem when trying to load images in a gallery which also loads into container_mc on main movie.
Thanks in advance for any ideas. I think it might be a _parent or _root issue. If anyone has any good reading on it hit me with that as well. I am gonna google some things. MT
Loading Contact Form Into Parent
I made a contact form using flash and php, and it works great in it's fla. I decided to load the swf into a parent file and now it get stuck in a loop waiting for a confirm, but it still sends the email. I have played with a few solutions on this site but I am running out of ideas.
Any help would be great.
Loading An External .swf Then Referencing To It's Label
I'm new with Actionscript and am currently working at building a website. I've got a lot figured out so far but one problem I'm running into is when I try to load an external .swf using the loader component and then reference it or try to point to it within my main .swf I can only load the "gallery.swf." through myLoader.contentPath = "gallery.swf";
I'm trying to load it and then point to a specific label so it loads that frame or label. I've created separate labels for each image in my gallery so that when I point to them with AS, it knows which image to load. It worked when I had the gallery in the main .swf but when I used the loader component it didn't work.
The AS I used that worked before I made a separate .swf and used a loader was:
on(release) {
_parent._parent._parent.photos_MC.gotoAndPlay("img1");
}
what I thought would work was:
on(release){
_parent._parent._parent.myLoader.contentPath = gallery.swf.photos_MC.gotoAndPlay("img1");
}
I'm probably totally off, but if anyone could help out I would appreciate it!
Loading An External .swf Then Referencing To It's Label
I'm new with Actionscript and am currently working at building a website. I've got a lot figured out so far but one problem I'm running into is when I try to load an external .swf using the loader component and then reference it or try to point to it within my main .swf I can only load the "gallery.swf." through myLoader.contentPath = "gallery.swf";
I'm trying to load it and then point to a specific label so it loads that frame or label. I've created separate labels for each image in my gallery so that when I point to them with AS, it knows which image to load. It worked when I had the gallery in the main .swf but when I used the loader component it didn't work.
The AS I used that worked before I made a separate .swf and used a loader was:
on(release) {
_parent._parent._parent.photos_MC.gotoAndPlay("img 1");
}
what I thought would work was:
on(release){
_parent._parent._parent.myLoader.contentPath = gallery.swf.photos_MC.gotoAndPlay("img1");
}
I'm probably totally off, but if anyone could help out I would appreciate it!
Loading Variables Form An External Txt File
Hi there, can anyone help!
I have created a flash movie which generates randomly questions and answers. The q's and a's are generated at the start using:
answers = new Array ("answer1","answer2",etc);
questions = new Array ("question1",etc);
the program works fine this way, but I really want to be able to drag this info in from 2 external txt files if posssible into those variables, so that they can be edited at any time outside of flash.
I know the LoadVariablesNum("file.txt",""); command for adding external data to dynamic txt boxes.
However, since I have used the Array command. I cant work out how to drag external data into these variables so that they may be plucked randomly and displayed.
Does anyone know if this can be done?
Referencing A Value Within A Form Field
Hey all...
Within my org. we have a set of variables that we can use within our .asp forms that are stored on a DB but can be called within our forms. Basically when a user longs into their machine and opens up one of our html/asp forms their user information Name/department/title/phone/branch address are auto populated within the 'profile' section at the top of the form. Below is an example of the code used:
<td width="450"><input name="UserName" type="text" id="UserName" value="<%=g_emp_fullname%>" size="50" maxlength="100">
Instead of building forms via html/asp I would like to try and build a 'smart' form via flash and pass all of the variables collected to a processessing .asp page that generates the email.
What I can't figure out is how to, within flash, reference the...value="<%=g_emp_fullname%>" , within the Flash form fields so the values come up.
I would like Flash to auto-recognize the values just like my .asp page did.
Any ideas on code referencing within Flash is greatly appreciated as always!!
Regards,
SKURGE
Referencing A Value Within A Form Field
Hey all...
Within my org. we have a set of variables that we can use within our .asp forms that are stored on a DB but can be called within our forms. Basically when a user longs into their machine and opens up one of our html/asp forms their user information Name/department/title/phone/branch address are auto populated within the 'profile' section at the top of the form. Below is an example of the code used:
<td width="450"><input name="UserName" type="text" id="UserName" value="<%=g_emp_fullname%>" size="50" maxlength="100">
Instead of building forms via html/asp I would like to try and build a 'smart' form via flash and pass all of the variables collected to a processessing .asp page that generates the email.
What I can't figure out is how to, within flash, reference the...value="<%=g_emp_fullname%>" , within the Flash form fields so the values come up.
I would like Flash to auto-recognize the values just like my .asp page did.
Any ideas on code referencing within Flash is greatly appreciated as always!!
Regards,
SKURGE
Contact Form
i have a form with variables name, street etc. on the send button i have the following action...
--------------------------
on (release) {
if (name ne "" and street ne "" and zip ne "" and town ne "" and email_from ne "") {
email_to = "whoever@whatever.com";
email_subject = "form contact";
loadVariablesNum ("http://www.whatever.com/flashmail.php", 2, "POST");
gotoAndPlay ("success");
} else {
gotoAndPlay ("failure");
}
}
--------------------------
2 problems...
1. netscape always goes to failure.
2. the arrived mail does not contain all variables, and yes, i checked the spelling.
any ideas? greatly appreciated!
Contact Form
I have been working on this contact form for several hours, and it does not work, could someone please take a look at it and see if they can find what is wrong with it.
Thanks
http://www.geocities.com/norefunds3/contact.fla
Contact Form
hello anyone can tell me how to do a full contact form in FLASH.. that send the info to my email
Contact Form
ALright, I'm having some trouble getting my contact form to work. I found an example of one that works with php.. so I upload this and get it working on my site... But now, I want to implement my own version of a contact form into my flash movie.. heres the code I used to do that:
on (release) {
if (name eq "" or name eq "enter.name"){
name="enter.name";
}
if (email eq "" or email eq "enter.email") {
email = "enter.email";
}
if (subject eq "" or subject eq "enter.subject"){
subject = "enter.subject";
}
if (message eq "" or message eq "enter.comment"){
message = "enter.comment";
}else{
loadVariablesNum ("form.php", 0, "POST");
_root.contact.gotoAndStop (70);
}
}
I got the load var. part from the form example that works and I used the exact name for the names of the input boxes... all the other if staments check to see if all the text boxes are filled in with something other than a default text.. Then , once all that passes it should load the variables to the php file and the php file will send me an e-mail based on that information.. I know its not the php file becuase I can get that to work on the real example... I just dont understand whats happening in my movie..
any ideas??
thanks,
Robert
Contact Form
how would i make a contact form that takes what is entered in an input text box and mails it to my email address?
-2
Contact Form With PHP
Hi...
I am trying to make a contact form in Flash, using a PHP script. I followed the tutorial on this site, but it is not working right. It is not sending the e-mail. Everything else works, such as the e-mail address validation, etc. There is a dynamic text field at the bottom of the .fla that states when the e-mail has been sent. I have attached the .fla file. The PHP script is copied below. If anyone can help with this, I would really appreciate it.
Thank you,
Kristine
<?
$ToEmail = "me@hotmail.com";
##$ToName = "Kristine";
$ToSubject = "Mail from Website";
$EmailBody = "Sent By: $firstName $lastName
Senders Email: $Email
Senders Company: $company
Message Sent:
$comments
Sender Heard About Company From: $hearAbout
";
$EmailFooter="
This message was sent by: $firstName $lastName from $REMOTE_ADDR .";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
Print "Mail.EmailStatus=Your e-mail has been sent.
Please allow 24 hours for responses.";
?>
Help With A Contact Form Using Cgi
Hi i am trying to set up a form for contact within my flash site. I am just wondering if any one has a real easy cgi script for sending the input to my email adress and then send an auto response to the person. I have a cgi script i got from my server but there is no support to tell how to use it and I can't figure out variable names. Any way any help would be appreciated.
josh
MX Contact Form Using ASP
Having trouble.
Why am I such a retard?
What am I doing wrong.
My server's mail object is "CDONTS.NewMail"
Here's my .FLA, HTML, & the ASP zipped.
Thanks for any help
Contact Form Help
Hi. I'm making a website with a contact page to send me an email using flash and Perl cgi scripts. When i try to use it, it sits there forever saying that its sending the message, but i never get any email or anything. I am using this tutorial,
http://www.flashkit.com/tutorials/Dy...-658/index.php
and here is my scripts and flash file:
Click Here and Download mailform.zip
My website is fusion2002productions.netfirms.com.
Its currently totally screwed up, which is why i'm redoing it.
PHP Contact Form Help
I have just uploaded my site and now my contact form shows strange text when you goto it?
This is my site
click on the contact link to see what happens. Anyone that can help is a god!
cheers
studentmonster
Contact Form
can someone direct me to somewhere where i can find info about making a contact form so people viewing my website can contact me.
cheers
Contact Form. Help Me
Hey guys, I have recently made a flash contact form as part of my website and have got it up and working until the point where I need the variables passed to a PHP file.
To start with, Is there any way to turn the info the user has input into an email which is then sent to me all in Flash? If so this solves my PHP problem, but could you tell me how to do it?
If that is not possible Then I need to know how to simply send a number of variables to a PHP script. Bear in mind that I want the PHP script to act unseen (Ie. I don't want a window to pop-up). Please could you tell me how to do this?
Here is my file as it stands.
Thanks in advance guys.
Felix.
A Contact Me Form, Not Using Php
Hi all
I would like to use a contact me form with name, subject, message send, but cannot use php as my account won't allow it, any suggestion where i might be able to view something like this.
many thanks
tania fox
Contact Form Help
Alright I have a form sent using PHP that I am working on...
The contact form is loaded into an empty movie clip called "mtClipContent"
Now this contact form as three input text boxes, with variable names "FirstName" , "Email" , and "ToComments"
Anywho, thats sort of irrelevant, my problem is that the text wont be display complete after it sends, it just stays at Sending...
the script in the php is
Print "_root.mtClipContent.EmailStatus.status_text=Compl ete, thank you.";
i think it has something to do with the path...
Contact Form
Is there a way I can make a contact form in flash and have the info sent to a email account. I know this can be made in PHP. Is there a tutorial or site I can check out. Thanks!
Php Contact Form
I am using a general contact form in flash
the tutorial I used is located here
http://www.dmxzone.com/ShowDetail.asp?NewsId=756
I recieve the email but the variable are never show up, I only get a blank email. Everything but the variable are sent Can't seem to see what I am doing wrong can anyone help?
Php Contact Form Var Not Being Sent
I have used the tutorial listed here http://www.dmxzone.com/ShowDetail.asp?NewsId=756
I setup the php file and I recieve the Email and anything set in the php form but none of the variables from Flash are sent. I double check the spelling to make sure everything matched but I can't figure out why it won't work. Even if I use the source file provided the variable aren't sent (
Any help would be great!
Contact Form Help
Hi,
Can someone please have a look through the PHP contact form ive attached and tell me why its not working.
thanks alot
Some Help With A Contact Form?
please i have this form and want to add the script to call the php mailform.php and a script to the clear button?
can you please help me?
thank you a lot.
Contact Form
If anyone knows how to get this form to work for the CONTACT PAGE in www.fiesta2go.com/TEMP/main.htm I want it to send all the info to a certain E-mail once they click send and perhaps have everything organized in its own area inside the E-mail?
If anyone could help I would greatly appreciate it
Cgi Contact Form
hey all thanks for taing notice of this one,
im just ahving a problem wiht this script. i dont have an editor for cgi and therfore im not sure what else i ned to do. im sure my serve supports cgi but the form doesnt seem to work.
its lovated at www.webreasons.com/testers/frame1.html
on the contacts page. ive also included the source in the zip file attached. if anyone could help me wit this it would be greatly appreciated.
many thanks in advance
Llewop
Need Some Help With A Contact Form?
i have a contact form flash with php and when i try it with greek charachters the mail i recive is not readable???????
any help on this i have tryid different things
thnx a lot
Contact Form, How Do I?
Ok I know it's a common problem, but how do I use these
textinput components?
I have inserted 8 component textinput fields and a component button. How do I make the button send all the information to a specific e-mail adres?
If you want to help me I can send you my file
Contact Form
hey guys...i am making a contact form. It's super basic...name, email, comment, and a submit button. When the user clicks submit, it sends the info to a PHP script, which in return sends a receipt to tell Flash to play the thank you message. Ok, that works...but only when i test the project from the flash program. Online, the form does not submit (IOW: user clicks it, but nothing happens). Worse is that the information is also not sending. Why would this only work from the flash program, but not from the server online?
code:
function createListener() {
var oListener = new Object();
oListener.click = function(oEvent) {
lvEmail.toAddress = "me@website.com";
lvEmail.fromAddress = mcForm.txEmail.text;
lvEmail.subject = "visitor message";
lvEmail.message = mcForm.txComment.text;
lvEmail.sendAndLoad("http://www.website.com/sentmail.php", lvReceiver, "POST");
};
mcForm.mcSend.addEventListener("click", oListener);
}
createLoadVars();
var lvEmail=new LoadVars();
var lvReceiver=new LoadVars();
lvReceiver.onLoad=function(){
if(this.success==1){
hideForm();
}
}
createListener()
Help With Contact Form....
I have a contact form .fla that when I publish out a .swf and test it from my desktop it works fine. By that I mean that I receive the e-mail. When I place it inside of the HTML page and again test from my desktop it still works. But then when I upload to my site it no longer works - I do not receive the e-mail. If I put a straight HTML contact form up there it works. Does anyone have any idea what could be going wrong?
Thanks much,
-Mary
P.S. I've been at this for months so help would be SoooOOO appreciated.
MX/php Contact Form
Hi.
I'm trying to make a contact form work that I downloaded here:
http://flashkit.com/movies/Interface...9916/index.php
I changed the PHP to my own information, and I'm on a server with PHP installed, I just can't seem to get it to work. It always sticks at the "waiting for confirmation" screen. I even uploaded it as-is (excepting the PHP changes) and
it does the same thing.
I wrote a quick script that uses mail() and tested it to make sure there's nothing funny going on with sendmail -- there isn't. It works fine.
I know flash decently, and I'm good with PHP, but I do not know how these two interact. Help?
Contact Us Form?
Im designing a Flash Contact Us Form which has - Name, Email Id & Message -fill this and send (should be mailed to an email id). Validations - all fields are mandatory. If some field is left blank and submit button clicked, it should say the corresponding field is empty !?!
Please post a tutor or a sample action script for this.
Also i would like to know if we should use any mail component for the mail to be sent (like cdonts mail component in asp)
Thanks in advance.
Contact Form Help
I'm using a standard contact/php form. When the user has filled in the details the 'send' button goes to frame 2, with text saying the email has been sent, etc. Is there any way that, when the 'back' button is pressed to go back to the first frame, I can clear the input textboxes of the text?
Contact Form
Ok i have searched and found the Kirupa Contact php form, but am still struggling to put it into my site.
I also want it to show a thank you page as on Kirupas one.
Can somebody help me. - (ill send them the .fla so they can have a play if they want.)
Also i have a wav file which i want to keep playing but it just keeps repeating before the song ends? If someone could also help me with this it would be much appreciated.
Help WITH A CONTACT FORM
Hi
I am trying to make a "Contact us" form in flash and somebody had helped me by giving me a code that does not WORK. Can anyone help me out if you already have one of this that works by emailing it to me to: ilianazm@gmail.com?
or else, can anyone tell me how can I make one of this forms that DOES work.
Thanks a lot.
Love from Mexico
Iliana
CGI Contact Form
dose anyone knows how to creat a CGI contact form in flash 2004MX?
Contact Form Help
Hey, i have a template which has a Name feild, email feild, and a message feild. Along with a reset button and a Submit button.
No idea how to get it to work, i know i need php, but what do i paste in the action script area for those feilds.
Any help appreicated, thanks
Contact Form
Can I have the actionscript to send data to a contact form script to send as a email? thanks!
Contact Form
Hi,
I am using a template from Template Monster and I was wondering could someone tell me how to work the contact page.................e.g. how can it be set up sot hat when someone fills it in it is sent to an email address.
Thanks
Please Help....Contact Form
I've searched everywhere on google and done tons of tutorials on creating contact forms in flash but none of them have worked. Could someone help me to do this? my site loads the external "Contact Page" and on that page there is a movieclip and this is where my form is in. Could this be why the tutorials weren't working, cause I didnt actually have the form on the main timeline but in a movieclip? I'd appreciate any help I can get.
Contact Form
Hiya,
I have a template which someone setup for me. The form doesnt work as there isnt a script with it. I sent an email to the company it was brought from and said i could buy one.
This sounded like they were trying it on to me. Is the only way to make it work by actually buying a script from them?
Thanks to anyone who can shed some light on this for me?!?!?
Aza...
Contact Form
i don't know why it doesn't work...can you tell me? and may be correct it?
home.arcor.de/nastja1989/new/form.rar
thanks!!!!!!!!!!!!!!!!
my page til now is: home.arcor.de/nastja1989/new/
|