ActionScript 3.0 :: "if" Statement - Implement 2 Email Forms In The Same Scene At Different Places In The Timeline

Jan 26, 2010

I've been having a problem trying to implement 2 email forms in the same scene at different places in the timeline. If I do just one form, there isn't a problem, but there is a problem with the 2nd form (I've tried using different instance names to no avail). However, it appears I have most of it figured out, but am still having a problem, which I believe I may have a solution for by using an "if" statement. In the following AS3 code is a string that reads var URL_request:URLRequest = new URLRequest("send_email.php");

I believe I may be able to resolve the problem if I had a 2nd string (in the same code) that read var URL_request:URLRequest = new URLRequest("send_email_02.php"); Is there a way to include that string in the same AS3 by using an "if" statement telling the code to "submit" the 2nd form? If so, how to write that "if" statement?

[Code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Insert 2 Email Forms In A Flash Site?

Jan 25, 2010

I wanted to have 2 email forms in a flash site. One to go to one inbox and another to go to another inbox. That's easy enough to do by editing the PHP, but not the AS3. The following code works for the first email form, but not the 2nd because of duplicate actions."What do I need to edit in the following AS3 code to get it to submit a second form?" 

[as]
stop(); 
contact_name.text = contact_email.text = contact_subject.text =  contact_message.text = message_status.text = ""; 
send_button.addEventListener(MouseEvent.CLICK, submit);reset_button.addEventListener(MouseEvent.CLICK, reset); 

[code].....

View 1 Replies

ActionScript 2.0 :: Forms With Components - Send An Email When Pressing The Button?

Oct 21, 2002

I did the Tutorial "Forms with Components" on this page. I was wondering, is it possible instead of printing the information on the screen when pressing the button you can have it send to you in an email when pressing the button.

View 4 Replies

ActionScript 2.0 :: Implement The Check Boxes Into My Email'd Form?

May 4, 2009

I have 4 var names "firstname, lastname, phonenumber, email" and 5 check boxes.I've also have a dynamic text box called EmailStatus. I got pretty frustrated with my code and felt it was messy,how to implement the check boxes into my email'd form.

View 3 Replies

ActionScript 2.0 :: Implement A Comment Form For A Flash Page Using A Php Email System?

Nov 6, 2004

I am trying to implement a comment form for a flash page using a php email system. I am new to flash, but I got it working for the most part. The problem is that I receive emails, but they are blank and do not contain the info I put in. Below is the Actionscript I used and the php I used.

on (release) {
if (!FirstName.length) {
EmailStatus = "Please Enter your name.";
}

[code]....

View 7 Replies

ActionScript 2.0 :: Singular Button Navigation To Multiple Places In Timeline?

Sep 26, 2006

I have a navigation menu that is a movieclip (menu_mc). In the movieclip are 5 buttons. i need the buttons, when clicked, to play a different area of the timeline, dependent on where the user is on the timeline.

I've tried writing this actionscript on the main timeline. But can't get anything to work and am a little lost. for example Say the viewer is on frame 5, and clicks the "blue" button and jumps to frame 6. on frame 6 if they are to click "blue" button again i want to send them to frame 7, not to frame 6.

if anyone could direct me to a tutorial on how to write up something like this, especially one dealing with a very large timeline and multiple buttons, i'd be grateful!

View 3 Replies

ActionScript 2.0 :: Email Form, Button With If Statement?

Sep 9, 2003

I have this email form. Click on the bottom where it says submit track.It takes you to a form section.On that button i have an if statement, but it doesnt work.I only want the playhead to play when all 3 fields have been filled out, i thought i had it right, but i was wrong

View 7 Replies

Professional :: 2 F4vs On Separate Layers And Different Places On Timeline Both Playing Same Time

May 19, 2011

Flash CS4, I have an f4v vid on one layer and another f4v vid on a second layer. the films do not overlap on the timeline. I have a button to goto the layer with the second f4v. All works fine however when I go to the second fv4 the first one continues to play which i obviously need to stop.

View 6 Replies

IDE :: Timeline Inside These Movie Clips And The Timeline On The Main Scene Have To Correspond To Work

Jun 10, 2009

why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]

View 1 Replies

ActionScript 2.0 :: If Statement - Goto Different Scene In Main SWF File

May 25, 2007

I have a movieclip in my main timeline as a menu. I want to go to a different scene in the main swf file depending on what scene I am in. Right now I'm using an if statement on the button within the menu (see below) but when I click on the button it only plays the first line of the if statement.

on (rollOver, dragOver) {
gotoAndPlay("s1");
} on (rollOut, dragOut) {
gotoAndPlay("s2");
} on (release) {
[Code] .....

View 3 Replies

ActionScript 3.0 :: If Else Statement With Timeline Controls?

Mar 3, 2010

figure out what is going wrong with this bit of code? I have a movie clip button called play_mc and when the user clicks on it I would like the timeline to stop and the play_mc state to change to frame two. Then when the user clicks on it again, I would like the timeline to start again and the play_mc to go to frame 1.

Actionscript Code:
play_mc.addEventListener(MouseEvent.CLICK, playCurrFrame);function playCurrFrame(e:MouseEvent):void {f (play_mc.currentFrame(1)) { 

[code]....

View 2 Replies

ActionScript 2.0 :: If Statement In Button - Timeline Control

Feb 27, 2010

I am having a problem using an if statement in a button. What I want to do is go to a frame dependent on which frame we are already on. For example if I am on frame one and I press the button the first time it will take me to frame five, if I then press the button a second time the actionscript detects we are on frame five so goes to frame ten and so on.

ActionScript Code:
on (release) {
gotoAndPlay(5);
if (currentframe == 5) {
gotoAndPlay(10);
} else if (currentframe == 10) {
gotoAndPlay(15);
} else if (currentframe == 15) {
gotoAndPlay(20);
}}

When I first press the button it takes me to frame 5, the second time I press it goes to frame 10, but when I press after that instead of going to 15 it takes me back to 5 then 10 then 5 then 10 etc and is stuck between going from 5 to 10 and back again.

View 8 Replies

Sending Email Automatically When Timeline Lands On Specific Frame

Apr 28, 2010

I can send emails/forms from a button, no problem, by using this.
emailSend.addEventListener(MouseEvent.CLICK, sendForm);
But I want it to send automatically when the time-line lands on a specific frame. What can I do to change this line?

View 1 Replies

ActionScript 2.0 :: Main Timeline To Scene?

Dec 2, 2010

From the main time line after clicking one button named "btn_mc" I go to a different scene named "About us" now if i want to come back to the main time by clicking another button named "Back to Main Menu" how can I write the code.

To enter into the "About us" scene I wrote this code to the button "btn_mc" which is in the main time line is something like this.

Code:
btn_mc.onRelease = function (){
gotoAndPlay ("About us",1);
}

View 3 Replies

Playing FLV Files On The Timeline In Secondary Scene?

Nov 2, 2009

I'm currently working on a project where I mix animation sequences with short videos. My project also has two scenes and the FLV will be placed on the main time line of the second scene. The problem I am having is, if the movie is previewed from the first scene, or exported, the FLV on scene 2 won't load. the timeline on the playhead will just spin. I'm currently using "Load external video with playback component" as the method for importing the flv file.I have already worked with this video multiple times in other flash files and have never had a problem loading the video. Is there a limitation to FLV playback in multiple scene movies?

View 5 Replies

Flash :: Make A Button Navigate From Scene 1 To Scene 2 Without Displaying Both Scene Content In Scene2?

Jan 27, 2011

ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.

[Code]...

View 1 Replies

ActionScript 3.0 :: Control Timeline In An Embedded Movie Clip From Scene 1?

Dec 12, 2010

How do I control the time line in an embedded movie clip from Scene 1?[code...

View 9 Replies

ActionScript 3.0 :: Reverse Timeline - Create A Button On New Scene After The Animation Has Finished

Jan 25, 2010

I have linked a button to another scene, in whic the second scene automatically plays some animation. I want to create a button on this new scene, after the animation has finished, which reverses the animation and then automatically goes back to the original scene. I have this code:

[Code]...

View 5 Replies

ActionScript 3.0 :: Flash Timeline Scrubber (calculate Total Frames With More Than One Scene)

Jul 17, 2010

how to build a timeline scrubber that can scrub more than one scene.

1. Scene 1 had 20 frames
2. Scene 2 had 20 frames
3. On scene 1 I put the slider that scrub the timeline. The totalFrames; sum all the frame from all the scene.
4. When i scrub the slider to frame 21 error occurred saying that the slider couldn't be found. So i paste the slider in scene 2.

So how to continue scrub on scene 2? How to make a slider that can scrub all scene and move along showing the current frames?

View 3 Replies

ActionScript 2.0 :: Passing Parameters - Swf Should Open A Particular Scene Called 'Scene 2' Rather Than Scene 1

Sep 13, 2004

Check out this code:

[CODE]...

everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried

[CODE]...

View 2 Replies

ActionScript 2.0 :: Send Email To Several Email Addresses By Clicking Submit Button One Time?

Jul 16, 2010

How can I send email to several email addresses by clicking the submit button one time. I am using Flash AS-2 .Shall be glad for any reference.

View 6 Replies

Flash :: Professional - Create An Email Form That Actually Sends The Information To Email?

Dec 4, 2010

I don't know if this is too much to ask but could someone give me a quick overview on how to create an email form that actually sends the information to my email? I have the form created, and I'll post the .fla file (I allow a laugh at my elementary flash movie. This is just a final project for an intro to flash class), and I understand I'll need the .asp file from GoDaddy setup on my hosted space.

View 3 Replies

ActionScript 2.0 :: Make Button When Clicked / Open Blank Email In Outlook Express To Email

Nov 6, 2004

I want to make a button, when clicked, open a blank email in outlook express to an email, with a subject.i take it you would use:[code] just wanted to show you what i meant! that was just a random stab.

View 3 Replies

ActionScript 2.0 :: Flash Email Form - If The User Doesn't Enter Anything, It Will Ask Them To In Order To Send The Email?

Mar 21, 2005

I have used the kirupa tutorial on a flash email form and it works GREAT! The only thing is I want to have required fields that need to be entered in for the form to send. If the user doesn't enter anything, it will ask them to in order to send the email.how I can do this or adapt it to the kirupa tutorial code?

View 1 Replies

ActionScript 3.0 :: Flash Email Form Send Blank Email

Feb 20, 2010

I've created a form in flash to for customers to send email from the website. I'm using action script 3 - (mailto: ) There are two problems.

1) It doesn't send. A blank email form comes up that the user has to fill out - doesn't work with their email client.

2) How can I get it to validate?

View 2 Replies

Actionscript 3.0 :: Create An Email Form With Flash Cs4 - Sent Details To Email

Jan 20, 2010

iam trying to create an email form with flash cs4. so i've designed the layout and i've written a script to check that the details given are correct. but i am having problems while i am trying to sent those details to my email. here is the script after the details were checked:

[Code]...

View 4 Replies

ActionScript 2.0 :: Another Window To Open Right Next To Email Button With My Email Address

Jan 22, 2003

here is the issue I am having: I have a button in my main movie and after it is pressed i want for it to open a pop up window right next to this button with some information in it. I have a email button so when you click on that button I want another window to open right next to this email button with my email address.

View 14 Replies

ActionScript 2.0 :: PHP Email , Hide Formatting In End-user Email?

Nov 15, 2007

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"

[code]....

View 3 Replies

ActionScript 2.0 :: First Requirement Of The If Statement When Type In The Proper Input And Go Straight To The Else Statement

May 14, 2009

Having a few problems with what I thought was a simple if statement. Here is the code:

[Code]...

I can't quite figure out the small problem with the code. It seems to just bypass the first requirement of the if statement when I do type in the proper input and go straight to the else statement.

View 7 Replies

ActionScript 1/2 :: Execute Code In Previous If Statement If Second If Statement Is Executed?

Aug 31, 2011

if (variable == 1){
//code
//Execute this code.
} else if (variable == 2) {
//code

[Code]...
 
I dont want to copy the code from the first into the second and the first and second into the third.
 
My mind isn't working and there is probably an extremelly simple way to get this working.
 
I know I could used functions but for some reason it stops the instance referencing working: _root["bullet"+j] doesnt work in a function.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved