Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Email Issue



I'm not sure what is going on here.. but I have been trying to get a registration form to send an email using a simple php script for a few days now... I have just recently uploaded the files from Jesse's tutorial. The issue is that the flash works fine. But I never recieve the email.

I have tested to see if the mail() function is working. And it does. But wont work when using POST from flash. All I get is a transferring data in the browser window.

I'm running this from a dedicated, server2003, IIS 6, with PHP 4.3.9 installed. Any insight or suggestions would be great!



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 09-29-2005, 10:38 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Email Issue
Hi,

I created a form with these text fields variables

name_txt
companyname_txt
telephone_txt
email_txt
message_txt

i have clear button (works) and a send that is acting funny. I have create a complete flash website. the form starts at frame 160. Here i put the actionscript:

email = "chris_norris@yahoo.com";
contact = "Norris & Associates";
mailto = "mailto:" + contact + "<" + email + ">";
subject = "Norris & Associate Inquiry";
stop();

i put this code behind the "send" button.

on (release) {
getURL("mailto:chris_nrrs@yahoo.com" + "?Subject" + _root.subject + newline + "&Name:" + name_txt + newline + "Company Name:" + companyname_txt + "Telephone:" + telephone_txt + "Email:" + email_txt + Message:" + message_txt ");
}

for some reason it says i need a operand . i am not quite sure what is wrong here. after the "mailto:chris_nrrs@yahoo.com I added another " because when i hit the send before it would leave a chris_nrrs@yahoo + " for some reason in the "To:" of the email message. so i added a "mailto:chris_nrrs@yahoo.com" and now it does not work. I also noticed that it does not use the "Subject" that i requested or place the textbox data into the body. the only thing that seems to actually work is the "To: chris_nrrs@yahoo.com + ". No subject or body info.

I hope i explained this well enough for someone to understand.

Email Issue
this is probably a stupid question, but is it possible to have a button in my movie, that opens Outlook so we can send a email?
and when outlook is open the correct e mail adress is already set? do i need php, or asp, or can i do this plain simple??

thanks!!

Email Issue
this is probably a stupid question, but is it possible to have a button in my movie, that opens Outlook so we can send a email?
and when outlook is open the correct e mail adress is already set? do i need php, or asp, or can i do this plain simple??

thanks!!

Email Issue ActiveX Swf
Any techie guys that can help me out here?

I've got this page http://www.spinninrecords.com/newsletter/magnesia.html
which I have to send through email to our newsletter subscribers.

by any means is it possible to send an embedded swf element through an email mailinglist system? I tested it though ended up with this: http://www.plastifashion.com/shared/errorpage.jpg

Including an error message when opening the email:
One or more ActiveX controls could not be displayed because either:
1) Your current security settings prohibit running ActiveX controls on this page, or
2) You have blocked a publisher of one of the controls.

As a result, the page may not display correctly


Any advise on this is very welcome

Email Link Issue
Hi

I created a text feild and used the properties box to add this link:mailto:myemailaddress@myserver.com.au

Flash CS3 for dummies says to then use the blank target box.

I get the underlining and it works. However this is my issue. When i test it it certainly opens my default mail handler, but it then also opens a new browser window with an 404 error. I understand the principle of blank, and also self, however if i use the self target that will lead my consumer away from the site to an error 404. How do i use a simple text link for the email?

Cheers

PHP Email Issue - Newbie
Hello all,

I followed the tutorial on this site and I successfully got the email to work. What I am having problems with is getting the "Thank You" screen to show up (in Flash) after the email is submitted.

Any help would be appreciated. I can send source code if needed.

Thanks,

kbmvp

Template Email Issue... Should Have Known Better...
Yeah, I know... I should have known better. But here I am and now I just want the thing to work. I don't know flash and I don't know AS and I don't know PHP. But I've looked all around and tried everything I can. So here is my issue...

In the contact section there are "name", "email", and "message" input boxes. They can be typed in and all that, but the send button... the send button is killing me. The AS attached to it is getURL(); and its in the button, not the timeline. What does that mean? I have tried to put in something I found on a tutorial on here and it still doesn't work.

Since I'm a total newb to all this AND the forums I'm not sure I'm posting in the right place or what you all may need to see to help me. PLEASE for the love of all that is holy, can someone help me. I will send whatever y'all may need where ever its needed. I just need to get this thing working before I go luddite and move into a cave.

Yes its come to that point.

THANK YOU!

Flash Email Form Issue
hi everyone.

just completed the flash email form tutorial http://www.kirupa.com/developer/actionscript/flash_php_email.htm

i did exactly what the tutorial said ( exept for that i changed the email direccion in the .php file) but it doesnt work, the "message have been sent" message appears, but the mail doesnt arrive ever... so please someone help me, is there a different method to do that?? is the tutorial wrong??
thanx!

Flash Line Feed Email Issue
Hi, can anyone help me with a code for sending an email from flash.
I have created an email to send 5 x input text fields to an email address.

The issue I am having is the text comes through on one line instead of creating separate lines to deliver the text to the mail recipient - when placed live on the server.

I have attached the code i have used and it is working within the flash document and when exported is working fine.

Just to eliminate these ideas i have already tried the codes listed below.

If any one can help me to figure this out I would greatly appreciate it.

Could it be a problem with the server?

Cheers,
Kirst











Attach Code

on (release) {
var sendto = "me@myemail.com.au";

var strName = "User Name: = " + Name + chr(10);
var strComputer = "Computer Name: = " + Computer + chr(10);
var strDepartment = "Department: = " + Department + chr(10);
var strPhone = "Phone: = " + phone + chr(10);
var strDetails = "Details: = " + Details + chr(10);

var strMessage = strName + strComputer + strDepartment + strPhone + strDetails;

getURL("mailto:" + sendto + "?subject=Intranet - " + Details + "&body=" + strMessage);
}



also tried the following codes to try to separate the fields:


<
>


vbCrLf
Chr(10)
Chr(13)

Flash-based Email Form Issue
hi there,

i have created a flash-based email form which i followed very closely according to the site tutorial. however, when i input every text field then click on the send button nothing happens. it seems my send button does not work.

can anyone tell me what i should check into? is it possible my iis server is too old to handle the script?

my os: windows nt
iis version: 4
php version: 5.021

this is my php script.
<?php
$sendTo = "someone@somewhere.com";
$subject = "Feedback Form Results";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>

this is my send button script.
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
}

this is my form script.
onClipEvent(data){
// show welcome screen
_root.nextFrame();
}

thanks!

Flash To PHP Email Form Variable Issue. PLease Help
Hello all! Here is my issue. I used Lees' Flash email to PHP to begin with.
The form itself is an external swf called "email.swf". Inside the "email.swf" is a movieclip called "form" this contains the form fields and such. The reason I put the fields into a movieclip is so it can be animated. The actionscript is also inside this form movieclip. The "email.swf" is called into a main movie and loaded into a holder called "formMC'. My problem is all targeting but I cannot send or recieve the variables or reive the echo from the PHP script. Comments or suggestions. Thanks guys!

Actionscript ################################

cancelBtn.onRelease = function() {
_level0.formMC.gotoAndPlay("meClose");
};
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("send.php", recieveLoad);
};
receiveLoad.onLoad = function() {
if (this.sentOk) {
_parent.gotoAndPlay("success");
} else {
_parent.gotoAndPlay("failed");
}
};


PHP #####################################
<?php
$to = "myemail@yahoo.com";
$subject = "Contact Form Submission";
$headers = "From: $theEmail";
$headers .= "Reply-To: $theEmail";
$theMessage = stripslashes($theMessage);
if (get_magic_quotes_gpc()) {
$theMessage = stripslashes( $theMessage );
}
$sentOk = mail(mailto:'myemail@yahoo.com' ,
'Contact Form Submission' ,
"Message From: $theName

Email Address: $theEmail

Message:---------------------------------------------------------

$theMessage
");

echo "sentOk=" . $sentOk;
?>

Html Enabled Dynamic Text Box EMAIL Issue
Can someone tell me why this isn't working?

<a href=mailto:'mark@marksplace.com'>mark@marksplace. com</a>

URGENT- Flash Based Email Form Issue
hey all,
i searched the forums for a solution to this, found a thread but no one actually answered the question at hand so i am starting a new thread.
i went through and did this tutorial
http://www.kirupa.com/developer/acti..._php_email.htm
when i run my version of it it will send the email to my address but it includes all these html tags along with it like this.


ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">kk</FONT></P></TEXTFORMAT><<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">jj</FONT></P></TEXTFORMAT>> <TEXTFORMATLEADING="2"><P> to me
show details
5:04 pm (0 minutes ago) <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">hh</FONT></P></TEXTFORMAT>





when i downloaded the source files and switched the php file to send it to my address it worked fine.

What is causing this problem, i've tried embedding the fonts, changing the layering of things and no luck. any help would be greatly appreciated.

thanks in advance.

Zim

Html Enabled Dynamic Text Box EMAIL Issue
Can someone tell me why this isn't working?

<a href=mailto:'mark@marksplace.com'>mark@marksplace. com</a>

[F8] Flash 8 - Email Form: How To Get Users Specified Email In From Portion Of Email
Hey guys,

I want to add a newsletter to my new website that people can add their email addresses to. First off, I would like to have a field that the user can type his email address in, and have that field check if the email is valid (ie make sure that there is an @something.something).

Next, I would like it to send an email to my email address, with their email address in the from portion of the email (basically as if they have emailed me directly from their email). This way, it will be very easy for me to add them to my mailing list.

Thanks a ton for any help... Ive been searching for a while on how to do this, but couldn't find a way to put the users email in the from portion of the email.

Email Forms That Send Email To Other Email Addresses
hello, well, I'm not sure who to ask about this problem. The thing is I really want to make an email form that can send email to other people. I have seen email feedback forms here that send email to my address but I would really appreciate it if someone could help me make one that sends email to other addresses. I have made an email feedback form already and its at http://www.jeviwebs.com/beatles/mail.swf if you want to view it. If any of you know of any tips, please email me or respond to my post here thanks! BTW, that feedback form was based on matthew summers tutorials here

it is in the send button where I have the problem

here is the action script for the action layer:

recipient = "";
targetpage = "http://www.jeviwebs.com/beatles/ecard.htm";
stop();

this works ok since you will specify the email address of the person to send email to (thus the blank recipient variable) but here is the main problem...the actionscript for the send button....since I want to send emails to other people, I can't use my cgi bin for that.

on (release) {
getURL("http://myaddress.com/cgi-sys/mailform.cgi", "lower", "POST");
}
on (release) {
gotoAndPlay(2);
}


I know that there is a way through this...I can change and do actionscript if someone can help me out...thanks you guys

Send An Email With The Users Email To An Email Address
ok..the subject may be a little confusing but this is what i have...

an input textbox where viewers type in their email address
a submit button

i want it so that when you hit submit after typing in your email address it sends an email to your@address.com providing you with whatever the person typed in the input textbox

is this possible without using php or asp or whatever?

peace
spen

Flash Php Email "thank You" Frame Issue
I got the old Senocular flash php mail to work as a standalone swf, no problems. However, once it's in my movie, it sends mail just fine yet doesn't continue on to the thank you page. Now, I've scoured for all the past posts on this and took all recommendations to no avail. It's driving me crazy.

On my contact form is the following:
onClipEvent(data){
_parent.nextFrame();
}

I've tried _root and even the _root.container method but got nothing. What could possibly be going on with this? Could there be something wrong with onClipEvent(data)?

thanks...

A Good Email List Program In Php And Email Form In Flash MX
Hello guys and Girls. Does anyone know how to setup a and direct me to a good 'Email List' program maybe done in PHP where essentially people come to my flash website....click a button to 'subscribe' to my newsletter' and when they do that.....they just type in their email addy and it is sent to a data base or something . I want to be able to simply type up a new newsletter and have it sent to all my email members who are in that email list in that data base?

I dont want anything more complicated than that!
I'm just paln to have a simlpe button in Flash that they click...and a small popup appears with a small form in flash for their email address and their name.

Let me know if anyone can refer me somewhere or help me out!

Thanks...

How To Email Textbox Attributes To An Email? (Basically A Form)
Hi I have a survey where you need to fill out a few answers, then it will auto email all the answers to one certain email. I'm not sure of the code I would use to email it. Im having a lot of trouble here, basically I would have it send one big string which includes the text variables like

"Name: " + name + "
" + "Age: " + age + "
" + "What Did you Think of the game?: " + feedback

etc. etc.

How would I send that one string to an email? Thanks ahead of time

HTML Formatted Email W/ Flash: Email Link Help
is there a way to put a mailto into a Flash that's embedded in an email without a browser window popping up when the user clicks on it.

The reply email works fine, but a browser window will open with the mailto in the URL and "Action Canceled" in the window. Not too pro looking.

Also, I found the Flash only plays in some email clients, when user views the email. I had to put a 'play' button on the first frame before the loader in case it doesn't play. I tried putting a "gotoAndPlay" but that didn't work either, took the loader out, even put the animation on the main timeline. Funky.

Told the client it's a bad idea, unpredictable, but they never listen to people that know what's up...

[MX04] Making An Email Button Go To Email Client
Good Day,

I have made a button on my website and would like it to do the following:

When pressed it would open the users email client and put my email address in the "TO" box so they can send an email to me.

Sounds simple but I can't work out how to make this happen.
Is there a better way to do this?

Can somebody help me with this?

Email Link On Swf Doesn't Work In Embeded Email, Why?
I am working on a swf file (sort of an ad) for email distribution purpose, the swf has an email link on it for potential clients to reply to us.

I upload the swf on our server, embed the swf into an email, and send the email off to do a test, the animation is playing fine, but there is a problem, when i click on the email link, I receive the following error message:

"Microsoft Outlook has encountered a problem and needs to close. We are sorry for the inconvenience."

And then the Outlook is closed down.

But this problem only happens on NT system, as while i click the same link from my XP, it instantly open up a new reply message fine, anyone has come across this problem and knows how to get around with it, could you help?

Many many thanks

Flash PHP Email , Hide Formatting In End-user Email?
Hello and thanks for taking the time,

I built a Flash email sender, its very simple, it just sends all the variables in the fields, no cross checks or nothing.

Problem: here's what the end-user email looks like:

Subject: Message from <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="14" COLOR="#000000" LETTERSPACING="0" KERNING="0">Smiles</FONT></P></TEXTFORMAT>

Name : <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="14" COLOR="#000000" LETTERSPACING="0" KERNING="0">Smiles</FONT></P></TEXTFORMAT>

Email:

Comments: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="14" COLOR="#000000" LETTERSPACING="0" KERNING="0">Massage</FONT></P></TEXTFORMAT>


Here's my PHP code:


<?

$destination="jjmorga@gmail.com";
$name=$_POST['name'];
$subject=$_POST['subject'];
$mes=$_POST['message'];
$subject="Message from $name" ;
$mes="Name : $name

Email: $email

Comments: $mes
";
mail($destination,$subject,$mes); ?>


To anyone that helps me tackle this pickle I bid you a million thanks

Email Form Sends Out Email 3 Times?
I am using the Web Service Connector to take text input on a form and email it from the website to the intended party. However, it sends the email out three times and I can't find where the error is. When I test the movie I get the following error: "Binding between <unknown>.. and <unknown>.params.emailFrom: The endpoint of the binding does not exist." It shows this error twice. So I am guessing the problem lies with these errors, which would give me three emails total.

Any ideas? I can't find any other instances of the WSC on the site?

Thanks,
Jim

Email Autoresponder That Includes Recipient's Name In Email
Hi--

I am trying to set up an email autoresponder in Flash MX that includes the recipient's name in the salutation of the email.

For example, if Bob Barker is at my site, I want to give him two boxes to fill in: one for his name (Bob) and the second for his email address. When he clicks the "ok" button, an autoresponder will send him an email that begins with, "Hi, Bob--etc." THEN, once he receives the email, if he answers it, I'd like ANOTHER autoresponse addressed to "Hi, Bob," but this time with a different message.

This must be pretty easy to do, but I have NO idea how. Can anyone direct me to a source on this? Or someone with the know-how?

Many, many thanks!

Flash Email Form -- No Content In Email
I realize that a similar question has been posted many times, but since I've been searching for an answer that works specifically for me for 2 long days, I feel I need to post.

I've created a guestbook-type form in Flash and a perl script to send the contents of that form to my own email address. Things seem to be working fine except that the email I get is blank. I don't know much about scripting outside of Flash, so I'd appreciate some help. I think my perl script is the problem, but I'm copying both scripts below.

Thanks a milion.

-------------------------------------------------------------------
My SendMail.pl script:
-------------------------------------------------------------------

#!/usr/bin/perl
print "Content-type: text/html

";
$title='New Birdie Guestbook Entry';
$to='jessica@jessicaberardi.com';
$from= 'jessica@jessicaberardi.com';
$subject='New Guestbook Entry';
$name = 'name_txt';
$address = 'address_txt';
$city = 'city_txt';

open(MAIL, "|/usr/sbin/sendmail -t");

## Mail Header
print MAIL "To: $to
";
print MAIL "From: $from
";
print MAIL "Subject: $subject

";
## Mail Body
print MAIL "New Guestbook Entry
";


close(MAIL);

print "<html><head><title>$title<
/title></head>
<body>

";

## START HTML content
print "<h1>$title</h1>
";
print "<p>A message has been sent from $from to $to";
## END HTML CONTENT
print "

</body></html>";






-------------------------------------------------------------------
My Flash code:
-------------------------------------------------------------------

stop();

function sendForm () {
my_lv = new LoadVars ();
my_lv.name = _parent.name_txt.text;
my_lv.address = _parent.address_txt.text;
my_lv.city = _parent.city_txt.text;
my_lv.state = _parent.state_txt.text;
my_lv.zip = _parent.zip_txt.text;
my_lv.phone = _parent.phone_txt.text;
my_lv.email = _parent.email_txt.text;
my_lv.message = _parent.message_txt.text;
my_lv.send ("http://www.jessicaberardi.com/test/SendMail.pl", "POST");
gotoAndStop("thankyou");

}

submit_btn.onRelease = function () {
if (name_txt.text == "" || email_txt.text == "") {
status_txt.text = "Please complete the required fields.";

} else {
status_txt.text = "";
sendForm ();
}
};

Used Php Email Tutorial From Kirupa, Need Email Validate Help
Hi,

I followed Senocular's tuorial to be able to send a form thru email in flash, it worked (which is great, since i also followed about 100 far more complicated ones i found on the web wich did not work!) but i need some help including an email validation element...i think its targetting the correct textfield variables i'm having a problem with, but i took all my efforts out of the attached files and now just have the functioning regular version and am awaiting some help...i have been at this for almost a week!!!

Ive attached a zip of my .fla and the php script.

Many many many thanks in advance,

sleeepy

Email Form, Help To Make Email In Html
hi ive made a email form for my site. it works but i want the email that is sent to be in html so i change images and tables.

here is my php script


PHP Code:





<?php 

$adminaddress = "gerard@organisedkaos.net"; 
$siteaddress ="http://www.atr-training.co.uk/"; 
$sitename = "ATR"; 
$date = date("m/d/Y H:i:s"); 

// List and load Flash vars - and convert into PHP vars. 
$inputname=$_POST['inputname']; 
$address1=$_POST['address1']; 
$email=$_POST['email']; 
$tele1=$_POST['tele1'];
$selection2=$_POST['selection2'];
$messagebox=$_POST['messagebox'];             


if ($REMOTE_ADDR == ""){ 
$ip = "no ip"; 
} else { 
$ip = getHostByAddr($REMOTE_ADDR); 


mail($adminaddress, 
"Message", 



"Name: " . $inputname. " 

". 
"Address: " . $address1. " 

". 
"Telephone: " . $tele1. " 

". 
"email: " . $email. " 

". 
"how did you find us: " . $selection2. " 

". 
"------------------------------
".

"message: ". $messagebox. " 

". 

"
------------------------------
". 

"Logged Info :
". 
"Using:". $HTTP_USER_AGENT. "
". 
"Hostname: ". $ip. "
". 
"IP address: ". $REMOTE_ADDR. "
". 
"Date/Time: ". $date. "
". 
"FROM: ". $adminaddress, "From:". $email); 
                     
mail($email, "Auto-response from ATR", "Thankyou for contacting us. We will get back to you shortly. ", 
"From: info@atr-training.co.uk". 
"Reply-To: info@atr-training.co.uk". 
"X-Mailer: PHP/" . phpversion()); 

?>








please help


gerard

Help Please Email From Page To Another Email With Url Link
This is getting really confusing for me so I need some help! The issue is that I am developming a video player that a client would like to have an ability of users to send (email) the page to a freind, with a link back to that specific page. I have experience sending mail via PHP scripts, and the mailto: commands. Does anyone have any idea how this could be accomplished? I need some direction. Thanks Devon
www.conjuringzoo.com

[F8] Do You Know How To Send An Email To An Email Address
Do you know how to send an email to an email address with a predetermined message from flash using Flash & PHP????

Email Form Not Sending Email... Please Help
Hi all,

I have a flash-based mailer form that was working at one point, but now it won't send email to the specified account for some reason. The host says that it needs to be sent FROM a valid email address on their server, but I can't figure out where in the code I need to make that work...

Here's the code on my submit button:


Code:
on(release){
formValidation();
if(validForm == true){
form.loadVariables("../email.php", "POST");
}
}
Here's the code in my PHP file:


Code:
<?php
$sendTo = "mail@kavehmedia.com";
$subject = $_POST["subjectTxt"];

$headers = "From: " . $_POST["nameTxt"];
$headers .= "<" . $_POST["emailAddressTxt"] . ">
";
$headers .= "Reply-To: " . $_POST["emailAddressTxt"];
$message = $_POST["messageTxt"];

mail($sendTo, $subject, $message, $headers);
?>
What am I doing wrong? Since it was working when I first made it, I assume the host changed something on their end, but they're being very unhelpful...

Email Form Need To Add Telephone # To Email
Hi,

I am using this email form and it works just fine, but I am trying to figure out how to add additional input feilds that show up in the email body. For example, when you receive the email the body of the email would look like this:
Name:
E-mail:
Telephone:

Feedback:

Below is the AS and the PHP code. Attached is the FLA. Any help would be appreciated

Code:
/*
AUTHOR : Z Syed
CREATING FEEDBACK FORM IN FLASH USING PHP
*/

/*
create the LoadVars objects. One for sending information to the php file and one for recieving information.
Although this can be done with one loadvars object, it makes for cleaner code to use two
*/

var sendData_lv:LoadVars = new LoadVars();
var receiveData_lv:LoadVars = new LoadVars();
var formValidated:Boolean;
var errorMessages:Array = new Array();

receiveData_lv.onLoad = function():Void{
trace(this.sent);
if(this.sent == "OK"){
message0_txt.text = "Thank you for your feedback";
}else{
message0_txt.text = this.sent;
}
}


submit_btn.onRelease = function() {
//this clears the error text field if they have been populate previously
clearTextFields();
errorMessages.length = 0; //empty the array so next time the submit button is clicked the array is not already populated
formValidated = checkForm();
if (formValidated) {
//the form is valid and so now we can send details to our PHP file
//populate LoadVars object with the field values
sendData_lv.name = name_txt.text;
sendData_lv.email = email_txt.text;
sendData_lv.feedback = feedback_txt.text;
//trace(sendData_lv.email);
//trace("valid");
sendData_lv.sendAndLoad("email.php?ck="+new Date().getTime(), receiveData_lv);
} else {
//populate textfields with the error messages
for (var i = 0; i<errorMessages.length; i++) {
_root["message"+i+"_txt"].text = errorMessages[i];
trace(errorMessages[i]);
}
}
};


function checkForm():Boolean {
//check whether the name field is empty
if (name_txt.text == "") {
errorMessages.push("Please enter your name.");
}
if (email_txt.text == "") {
errorMessages.push("Please enter your email address.");
} else if (email_txt.text.indexOf("@") == -1 || email_txt.text.indexOf(".") == -1) {
errorMessages.push("Please enter a valid email address.");
}
if (feedback_txt.text == "") {
errorMessages.push("Please enter some feedback");
}
//if at this point the array is empty i.e has length 0, then this in effect means the form has passed all checks
if (errorMessages.length == 0) {
return true;
} else {
return false;
}
}


function clearTextFields():Void {
for (var i = 0; i<errorMessages.length; i++) {
_root["message"+i+"_txt"].text = "";
;
}
}

}

PHP Code:



<?php$name = $_POST['name'];$email = $_POST['email'];$feedback = $_POST['feedback'];$subject = 'feedback from your website';$headers = "From: $name <$email>
";$headers .= "Reply-To: $name <$email>
";//ENTER YOUR EMAIL ADDRESS HERE$to = 'email@emailaddress.com';//---------------------------$success = mail($to, $subject, $feedback, $headers);if($success){echo '&sent=OK';}else{echo '&sent=Error';}?>

[CS3] Still Having Clock Time Zone Issue---and Dynamic Text Box Issue
I'm trying to do a clock that displays another time zone. The problem I'm having is that instead of running on a 12 hour clock, its on a 24hr one.

any insight as to how I can change the time?
Currently the clock is displaying
23:00p-Jul.22

I want it to display 11:00p-Jul.22

var dayText:String;
var dateText:String;
var monthText:String;
var AmPm:String;
_root.onEnterFrame = function() {
var myDateate = new Date();
//var sec:Number = myDate.getSeconds();
var min:Number = myDate.getMinutes();
var hour:Number = myDate.getHours();
var day:Number = myDate.getDay();
var date:Number = myDate.getDate();
var month:Number = myDate.getMonth();
//var year:Number = myDate.getFullYear();
//sec = sec<10 ? "0"+sec : sec;
min = min<10 ? "0"+min : min;

//AM/PM
if (hour>12) {
hour = hour-12;
AmPm = "p";
} else {
AmPm = "a";
}


//day
if(date == 1 || date == 21 || date == 31) {
dateText = date+"";
} else if(date == 2 || date == 22) {
dateText = date+"";
} else if(date == 3 || date == 23) {
dateText = date+"";
} else {
dateText = date+"";
}

//month
if (month == 0) {
monthText = "jan";
} else if (month == 1) {
monthText = "feb";
} else if (month == 2) {
monthText = "mar";
} else if (month == 3) {
monthText = "apr";
} else if (month == 4) {
monthText = "may";
} else if (month == 5) {
monthText = "jun";
} else if (month == 6) {
monthText = "jul";
} else if (month == 7) {
monthText = "aug";
} else if (month == 8) {
monthText = "sep";
} else if (month == 9) {
monthText = "oct";
} else if (month == 10) {
monthText = "nov";
} else if (month == 11) {
monthText = "dec";
}

//display
dateDisplay.text = hour+":"+min+ AmPm + "-" + monthText+"."+ dateText;
};

Complex Audio Issue..or Maybe Just Syntax Issue
what's up peoples. I'm building a new site for my studio and having some audio issues i can't explain very well, so here goes:

I've got an external .swf successfully loading into _level6 of my project with it's own audio. and from reading thse forums, i know that if i want to control the audio independently of other audio, i need to attach the sound object to a seperate movieclip, which i'm doing and I can control the audio just fine. However, when i click to load in a dynamic image into a dynamicly loaded movieClip, the volume button no longer works. Both the soundobject's mc and the dynamic mc's are being loaded into the nextHighestDepth() so i don't think one is kicking out the other. Here's what i've got:

Code to attach the soundObject when the section starts:

Code:
this.createEmptyMovieClip("soundstage6",this.getNextHighestDepth());
work_sound = new Sound(soundstage6);
work_sound.attachSound("myaudiofile");
work_sound.start(0, 999);
Code to control the volume:

Code:
this.testVol.onPress = function () {
this._parent.work_sound.setVolume(0);
}
Code that loads in my dynamic images:

Code:
this.testLoad.onPress = function () {
_root.attachMovie("infoClip", "infoClip", this.getNextHighestDepth(), {_alpha:0, _x:491.1, _y:193.9});
}
that testLoad button does severl other things when clicked, but when i comment out that particular line of code, the volume control button contines to work. I'm sure this has something to do with the fact that all of this is occuring on _level6 but i have no idea why or how to fix it!!!

Anybody have any ideas? Sorry for the long and complex explination!!

Mac Textinput Issue + New Player Fullscreen Issue
Please inform me if I am a total idiot,... but it appears that holding down backspace while in a TextInput on a mac will only delete one character rather than deleting chars as long as the button is held down. I have tried making the simplest project consisting of only a base sprite and a textinput, and it fails (i thought i may have been preventing the event from bubbling or something.) I tested the movie on PC and holding down backspace works fine. Is this a known issue? and so I just have to extend textInput?...

Also, it seems like when coming back from fullscreen in a swf embedded on a page causes some flickering of the swf content upon resizing the browser window, 3 people I know have also encountered this problem.

Thanks for any help,

Chris Laan

Button Issue In Flash - Program Issue
all of a sudden when i create a button and place it on stage i cant click it to drag it, scale or whatever...instead when i hover over it it behaves as in a compiled swf file (cursor changes into a hand,...).
How can i change that to the way it was? Anyone had this problem before? It is becoming really irritating.

Email Variables Through Email
I have what might seem like a simple question. However, I can't find the answer. I created a multiple choice test with 5 questions. Each answer is stored as a variable. q1, q2, q3, q4, q5. On the last screen I created a name text field for them to type their name. Now I want to create a submit button that will email me the value of all of the variables separately.

I can't figure out how to format the getURL message to email each variable to me. Here is what I've tried and I get "undefined" in my email body:

on (click) {
getURL("mailto:dsmith@help.com?subject=AEIOUsales" + "&body=" +employee +q1+q2+q3);
}

Please help me with my simple question...Show me an example of how this script should be formatted. Thanks in advance!

Level Issue Or Version Issue?
hi,

wondering if anyone knows why this movie here:

http://www.pixel360.com/dev/zoompan.html

works fine as it is, but when loaded into another movie, into an MC called 'blankmc1' it will drag, but not zoom?

Also when i try exporting it as AS 2 and Flash8 the zoom handle sticks to the top of the screen?

source here:
----------------------------------------------
http://www.pixel360.com/dev/zoompan.fla

weird?

Help With Crash Issue/actionscript Issue
Hello all,
My name is Josh and I want to say thanks for even reading my post, I appreciate any help I can get. I am here at work trying to edit a flash intro I bought from templatemonster (no im not a newbie, but this is the one my boss really liked, so what he wants he gets). Im trying to edit it here and i first opened it in Flash 8 which is what i normally use. So, im editing it and usually after I edit a few things I would like to get a glimpse so i test the movie real quick. Well, everytime the "export movie" dialog box came up, it stops at about a little more than half way and the box goes away and NOTHING comes up. IT doesnt freeze, but my test movie doesnt show like something usually would. So i tried installing/uninstalling it to no avail. Finally my boss went out and purchased flash cs3 and we installed that. So im editing it again, and went to test movie, and this time it gets 3/4 way done and "flash has unexpectedly quit" etc etc. So im starting to think its something with the actionscripting maybe?? i dont know but im really frustrated and need some help here. And also, even if I tried to just plain export the movie to swf, crashes too!
Thanks everyone!
-Josh

Flash 8 Pro Issue Interval Issue
Hey, I've been working on my site for a few weeks trying to get it all just right, and I'm making it import text, to text fields from external documents, I've been using loadVariablesNum() and createTextField() to post the text onto the flash document.


ActionScript Code:
//0x393c39;
       
this.createTextField("forum_box",this.getNextHighestDepth(),212,3,162,120);
forum_box.wordWrap = true;
forum_box.border = true;
loadVariablesNum ("forum_txt.php", 2);
function ftv() {
   if (_level2.forum_txt != undefined) {
      trace(_level2.forum_txt);
      forum_box.htmlText = _level2.forum_txt;
      clearInterval(ftt);
   }
}
var ftt:Number = setInterval(ftv, 100);

this function keeps looping, it is in a frame that is only called once, i tested this by placing a trace at the very begining , just to see if it would echo it to the output screen more than once, It seems my interval isn't stopped by clearInterval(). if anyone can see my issue here it would be greatly helpful.


Thanks

Cgi-bin And Email
could someone help me how to use flash to get our visitors email address by putting a submit button

and about the script for this

thanks

PS: is there any web site for this tutorial

Email
I think my problem is a little more complex than what i thought it would be. Anyway, I'm trying to set up Flash to do a email to alot of people for comments. Well i got it to work for about 10 addresses, but after that it doesn't like anymore. is there another way i can do this? would a "comments" type page work better? if so how can i get flash to do the background work for it, with out openning email up.

Email
what's the script code for email ?

Email
hi can some one tell me how to put a email link in my site.

like an outlook express pop up.

Thanks

Email
I've tried a tutorial "The Idiot's Guide to Creating and Using Forms in Flash 4+"....the scripts used is ASP....but my company's intranet is configured in Cold Fusion. If i want to do the same thing as taught in the tutorial...what should i do? pls somebody help me! thanks!

Email
Greetings, what actionscript do I put on a button to pop up
an email window? addressed to myself for feed back out of flash?

How To Email
Could someone please tell me how to email a section of a flash file to someone. I would like for this to be done in Flash by hitting the "Place Order" button.

Email
I am having trouble opening a email window in flash. I am using geturl(mailto:someone@email.com) but it is opening a browser window also. how do i keep from opening a browser window?

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved