473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Email Button Script (Action) For Flash 8 - Need ASAP

Need these two scripts;

1. (Action) script for email (outlook express or...) to come up in .swf enviroment. I have created a button (email us), need action scritps to send/recevie an email.
.
2. Submit form (Action) script to send infromation form out to my email from .swf enviroment.

You may send the information to fortwaynemarketplace@yahoo.com.

Thank you.
Regards,
Feb 10 '07 #1
5 19263
pia
5
Did you get the scripts? If so, could you also share with me? I am new and need the same.
Regards
pia
Mar 16 '07 #2
cypher
1
there are several ways to do this, here's one.

from an action layer:
<instance name>.onRelease = function () {
getURL("mailto:who@what.xxx");
}

if you're writing the script in the action window with the email button selected, use this:
on (release) {
getURL("mailto:who@what.xxx");
}

To test this script, you must open the swf in a browser.
Good luck
cypher
Mar 23 '07 #3
i did exactly what you did, changed the <instance name> to btn.
I inserted this in the "as" layer on the first frame.

now it looks like this.
btn.onRelease = function(){
getURL("mailto:cbistands@gmail.com");
}

Now, i press Ctrl+enter and the 'animation' starts.

When i click on the <instance:btn> nothing happens. No errors, no nothing. The other instance works though

<!-- btn2.onRelease = function(){
getURL("http://www.cbistands.com");
}
--> Please help...
Feb 22 '08 #4
chunk1978
224 100+
to do what you require, you need to set up 3 things:

1- a form made up of Input Text boxes, etc, and assign each form item a "Var" name (not the same thing as an instance name)... you can set your Var in the Properties tab.

2- an external PHP script.

3- a button (in flash) directing your form variables to the PHP script.

there is a very basic tutorial here that will teach you how to do this: Flash Email Form / PHP Tutorial
Feb 23 '08 #5
to do what you require, you need to set up 3 things:

1- a form made up of Input Text boxes, etc, and assign each form item a "Var" name (not the same thing as an instance name)... you can set your Var in the Properties tab.

2- an external PHP script.

3- a button (in flash) directing your form variables to the PHP script.

there is a very basic tutorial here that will teach you how to do this: Flash Email Form / PHP Tutorial

I did that step by step like they said but i tried to put the AS in the buttons action, but it told me it isn't legit.
Expand|Select|Wrap|Line Numbers
  1.  
  2. form.loadVariables("email.php", "POST");
  3.  
  4. &
  5.  
  6. onClipEvent(data){
  7.  
  8.    _root.nextFrame();
  9.  
  10. }
  11.  
  12.  
So i created a new layer "actions"
I also created a "email.php" file (to import the code that is)

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $sendTo = "senocular@hotmail.com";
  3. $subject = "My Flash site reply";
  4.  
  5. $headers = "From: " . $_POST["name"];
  6. $headers .= "<" . $_POST["email"] . ">\r\n";
  7. $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
  8. $headers .= "Return-Path: " . $_POST["email"];
  9. $message = $_POST["message"];
  10.  
Is there something i'm doing wrong? Or what am i doing wrong, please help...
Feb 27 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: rock72 | last post by:
Hello there, Can anyone tell me how to create a php script that when the user click the Submit button, a message will be sent to friends email add stored in mysql table? I created this ff...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
4
by: Leighroy | last post by:
This SHOULD be a very simple process, but has somehow turned out not to be. In Flash MX 2004, how do you make a button connect to a url? I'm in the Actions pallet, with my "get url" action...
2
by: snowweb | last post by:
Hi, This is my first flash project! It would be great if someone could help me please. I have purchased a flash template which I have made some alterations to. My biggest alteration is that of...
6
elamberdor
by: elamberdor | last post by:
Hi All! Trying to get a drop down hide/show div on a html page triggered by a button in flash. (Intro: Very very Little experience in dynamic flash) setup: html page, flash map on page, button...
9
by: anuparvathy | last post by:
i am using a flash template for my website.i am working on asp.net 2.0 for creating my website. this flash template has got buttons.on the click of the button i want the user to be redirected to the...
1
by: anuparvathy | last post by:
i am using a flash template for my website.i am working on asp.net 2.0 for creating my website. this flash template has got buttons.on the click of the button i want the user to be redirected to the...
0
by: anuparvathy | last post by:
hi To make a flash button work in asp.net do u need to write any code in the load event of the page?or is it just enough to write the code in the flash action script window? note: i do not...
5
by: canajien | last post by:
I have a form that stores information in a table, but I also need it to send an email when a specific question, among the many, is answered with no the question is a simple drop box: <select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.