ActionScript 2.0 :: OnClipEvent(data) Not Working In Form?
Apr 2, 2010
It's a very basic comments form with only 3 fields, the information gets sent directly to a email address through PHP.
The form works perfectly, sends all the information to my email, but my problem comes in when I try to run a onClipEvent(data) handler to go to a "Thank you" page when the information's been sent.
The onClipEvent(data) handler runs on the form movie clip and works fine when I run it on my local drive, but when I run it through the website it never executes. The form just get sent and it stays on the same frame.
I'm getting headaches from this because it looks like all the codes are working fine, it just doesn't want to run the damn handler!
View 0 Replies
Similar Posts:
Oct 19, 2009
I am trying to create a simple form using Actionscript 3 that will collect data from a form, then pass that data to an asp file. I have attached the following code to the submit button,but this is not working.I'm not sure if I have to add anything else and I don't understand why this is not working. I'm trying to load all the variable info into one variable called email form.
submit_btn.onRelease = function() {
var emailform:text;
emailform.email_txt = email_txt.text;[code]......
View 1 Replies
May 28, 2010
I have two movieclips that determine their frame number by a variable. The problem I'm having, though, is that the frame doesn't change when the variable changes. The original variables are determined in the main timeline (_root.item_slot1= 0;).The following code is contained in the item_slot1 movieClip:[code]So it starts off in frame 1. If I change the original variable to 1, then it will go to frame 2. However, the frame doesn't change when the variable changes, and I have a text box that shows the value of the variable, and it changes to 1 exactly when it's supposed to.I can't zip files, but I have the .fla at URL... if you can get it to download from there.
View 7 Replies
Sep 8, 2006
why it isn't working, or what I'm doing wrong to fix it. maybe I have the right script, but the wrong location. I'm also on Flash 8, by the way.example. I have the movie clip labeled "characters" on the main timeline. in that movie clip I have one movie clip titled "boy" and another one titled "girl". the "boy" movie clip is lip-synced and talking up a storm with some audio, and somewhere down the line, "girl" movie clip is introduced and is also supposed to speak on the frame I labeled by the same name, "speak". I'm trying to specifically target a certain frame in her movie clip timeline to play, but I just can't get it right.what I do have is:
onClipEvent (load){
_root.characters.girl.gotoAndPlay("speak");
}
now I know I could also have:
this.gotoAndPlay("speak");
I've tried placing the script directly on the "girl" movieclip when I want the event to happen, and then also placed the script on its own actionscript layer, but somehow, it just isn't working correctly.like I said, "boy" is chatting up a storm, and let's say something like frame 200 is when I want "girl" to come in with her line, that specific audio frame within her movieclip timeline labeled, "speak". she also has about 6 other speaking cues that I'm trying to call up to coincide with movieclip "boy" while he talks.
View 1 Replies
Feb 2, 2009
I'm having a tough time with a page sliding clip, and not sure what to do.
I've got a movieClip with a page sliding effect that I found here at Flash Kit. It's perfect for what I need, however the effect will only work in that movieClip. Once you try to load that movieClip from anywhere else, the sliding no longer works.
Here's the code that's on the image clip:
Code:
onClipEvent (load) {
_x = 0;
_y = 0;
spd = 5;
[Code]....
View 1 Replies
Sep 19, 2007
I have a Movie Clip on my time line that has an empty movieclip inside it which I whish to load a random external SWF file into. There is to be an unknown number of SWF's to load in and these are to be played one after the other. So when the first random SWF is finished playing the next random SWF is to start playing.
Here is the hierarchy of my file
Code:
|_ Timeline
|_ plasmaScreen_mc
|_ emptyMovieClip (instance name advert)
So on my empty movie clip I have an onClipEvent which loads in the file path of the External SWF from an XML file and tries to load the extrernal file. Here is my code
Code:
onClipEvent(enterFrame)
{
if(this._currentframe == this._totalframes)
{
[code].....
Unfortunately because the code for getting data from the XML file is included in the onClipEvent "this" now refers to the XML data and not the movieclip. Can anyone tell me how I can proceed. I need to pass the filename to movieclip.
View 1 Replies
Mar 1, 2010
I'm trying to load XML data after an hitTest but doesn't work the way I'm programming. Here is the source code:
onClipEvent (enterFrame) {
if (_root.ster1_mc.hitTest(_root.rocket)) {
trace("raak");
function loadXML(loaded) {
[Code] .....
When I use the XML code simple on a button it works perfect but after my hitTest it's doing nothing... When I remove the function it say's undivined in the textarea.
View 1 Replies
Dec 18, 2003
I'm having an odd issue with this onClipEvent friend... In the main timeline, I set a variable like so:
[Code]...
And when it occurs, I get back LOADING FLAG IS: true, and that's fine too. Then, on the object I have the image loading into, I have the following:
[Code]...
And indeed, when the image loads, I get the trace statements, BUT though it traces, it does not redefine loadingFlag! also, the second trace statement comes up as IMAGE LOADING FLAG IS: with no value afterwards... Is there something with onClipEvent(data) where even though it's attached to a nested movieclip, it doesn't refer to the _root?
View 1 Replies
Dec 12, 2005
The probem is I have an external swf file that loads a mailer. everything works fine apart from the fact that when the data is sent to the php file this command wont respond. It works on my local but once on the server it dont go.I think that the problem might be that MC (goin) is the MC that this code is located in?
onClipEvent (data) {
_root.goin.gotoAndPlay(12);
}
View 1 Replies
Aug 26, 2004
How would you write this into a function that lies on frame 1:
onClipEvent(data){
this.sendSent.text = "MESSAGE WAS SENT";
this.textEmail.text = "EMAIL";
this.textSubject.text = "SUBJECT";
this.textName.text = "NAME";
this.textMessage.text = "MESSAGE";
}
View 1 Replies
Jan 6, 2005
I'm using the code contains onClipEvent(load) and onClipEvent(enterFrame) and duplicateMovieClip() to make the snowing effect in the 2 first movie-clips but then, i cannot stop them in the next movie-clips. (All of my movie-clips in 1 scene only.)
View 1 Replies
May 4, 2007
How to store the data text in Access databases using flash form and to search into the database. It is possible to work without server because I don't want to put this flash file on the net. how to make databases and to connect with flash and to have possibility to search the database, but to work database in the local computer.
View 1 Replies
Jan 14, 2008
I have an Access Database (doesn't need to be Access, I can phpAdmin or mysql, whatever will work) that has a list of names. I want the user to open a Flash form and have the names load up into seperate input boxes for each name. The user can then change the names, move them, whatever, and then save the record. I want it to just overwrite the record. I donlt want create a new record. I cannot, for the life of me, figure this out. I have tried to find some tutorials but nothing makes sense. Is ASP a good way to go? I have been struggling with this for a week now.
View 3 Replies
Jul 26, 2006
I currently have a Flash app that gets populated by parsing data from an external XML file. However, I need to get the XML data into a (JSP) session and can't neccesarily have an external XML file--any suggestions? Can I put the XML string into a hidden input field in a form on the HTML? Can Flash communicate with that HTML? Or are one of the below methods recommended:
* FlashVars
* Flash Remoting
* Web services
* JavaScript - call JS function
* fscommand
* ExternalInterface
View 1 Replies
Jun 12, 2009
make a Flash contact form and send the data in an email without using a PHP script? My server does not support PHP... How would I go about sending an email from flash using a different language?
View 5 Replies
Jul 25, 2007
I want to create a flash form and be able to collect the dataoffline. The company I work for has a e-newsletter, and we wouldlike to set a lab top up (outdoors w/ no interenet connection) atan event and have the people sign up for the newsletter on thisflash form and collect the data in some kind of database (excel orwhatever). We had used paper in the past, but taking the names andemail addresses from the paper is time consuming and sometimes very
View 1 Replies
Apr 11, 2007
some feedback onthe following. I'm stuck. I have a form that I can get to workusing text input fields, but I need to get it to work using thecomponents.I have a flash form with the following:
prmZip instance: text input box
prmMilage instance: combo box
prmUnita instance: data= Mi, label= Mi
[code]......
View 3 Replies
Jul 8, 2006
Thus far I've learned how to create a contact form withfields for name, e-mail, phone number, and comments to include abutton for send and a button for clear. My question is what do I donext to capture and send the data to me via e-mail? I'm told Icould do it with PHP in my SQL I haven't a clue as to where to
View 2 Replies
Jun 15, 2009
I am really in trouble with flash forms and need help please. Ive been trying to get a contact form working for a few weeks but have had no luck.Below is the code I am putting in to the flash form and php file.(this is the code I have put for the send Button)
on (release) {
if (name eq "" or subject eq "" or message eq "" or email eq "") { stop(); } else { loadVariablesNum("form.php", 0, "POST"); gotoAndStop(2); }}
(this is the code I have put for the clear Button)
on (release) { name = ""; subject=""; message=""; email="";}
(And this is the php file i created in dreamweaver and saved it as form.php)
$to = "your_email@email.com"; $msg = "$name
"; $msg .= "$message
";
mail($to, $subject, $msg, "Message From: Online client
Reply-To: $email
");
?>
I have uploaded the swf file and php file on the server but my form is still not working by sending the information to my email.
View 1 Replies
Dec 5, 2009
My site [URL]
The contact form is not sending. And I'm trying to figure out why...
<?PHP
$to = "sven@peachypro.com";
$subject = "OEX Charters";
$e = $_POST['email_txt'];
[Code].....
View 0 Replies
Jul 2, 2007
I have a movieclip called Inquire.fla.In this movieclip i have a form and a button.The form is made up of 4 text fields.... name, email, phone, and message. Each has been given variable names. I converted the 4 text fields to a movieclip, and gave it the instance name "form".I back out to the main scene, click on the form movie clip and give it the actionscript:
onClipEvent(data){
_root.nextFrame();
}
I also have a button that is on the main scene. It has been given the actionscript:
on(release) {
form.loadVariables("email.php", "POST");
}
I then created email.php using dreamweaver with the following code:
<?php
$sendTo = "adamjcormier@hotmail.com";
$subject = "My Flash site reply";[code]....
The movie Inquire.swf is an external movieclip that is loaded into my main Index.swf. I upload the Inquire.swf, Inquire.html and email.php onto the 1and1.com server. When i view my webpage and fill it out.... absolutely nothing happens.
View 6 Replies
Feb 15, 2009
This php mail form is not working in the Yahoo Server though otherwise worked in other Server. I talked with one Yahoo Service Representative for my Server and they stated that everything is fine with the Server and that the only issue they can see is you coded the script in PHP 5 because Yahoo only supports version PHP version 4.
<?
$destination="trnghosh@gmail.com";
$subject = "Message From trnghosh";
[code].....
View 1 Replies
Nov 22, 2002
have been trying to make a form mailer in flash.The form mailer for me is provided by [URL] it gives me the codes to send stuff from my web site to my email.This is the code that formbuddy has given me
<form action="http://www.formbuddy.com/cgi-bin/form.pl" method="post">
<input type="hidden" name="username" value="USERNAME">
<input type="hidden" name="reqd" value="1,2,3,4">
<input type="hidden" name="url" value="URL">
the USERNAME value is for me to add my formbuddy username after i have signed up with [URL] .Now my problem is that i dont know how to put the hidden fields in flash, especially the <input type="hidden" name="username" value="USERNAME">. So how do i do it? And yes, i have seen all the tutorials they have here about the form mailers. I also tryed to put the the hidden fields has variables in flash which again did'nt work....
View 7 Replies
Mar 20, 2009
I am working on a flash site that was done by someone else. I have never used actionscript before so I am sooo new at this. There is a reset button on the form so when people accidentally type in something, they can just click on the "reset" button and it clears all fields. The problem is that it's not clearing.This is what I have in the code for the button:
on (release) {
fullName = "";
address = "";
message = "";
}
The three (fullName, address and message) are the names of my variable when you select each input field. Where am I going wrong with this? Nothing happens when I click it.
View 2 Replies
Sep 10, 2010
For some reason my flash file is not calling a php file and sending out an email including the data entered in the flash file.
I've taken out other movie clips and graphics to make this easier on everyone.
Fla File: [URL]
PHP File (in txt format for read-ablity): [URL]
Note; As you can see I've used _root.movieclip, I've tried it with out _root and still no luck.
View 1 Replies
Feb 26, 2010
I have decided to give these components in flash a try and can't get it to work.I am using the following components, a Checkbox(instance name chkPrivacy), TextInput(instance name txtName) and a ComboBox(instance name cboName) on my stage.I have a "submit" button that I made.On my submit button, there is the following code:
Code:
on (release) {
cmdSubmit_onRelease();
}
On frame 1 of my timeline I have the following code:
Code:
stop();
cboName.addItem('');
cboName.addItem('Bill');
cboName.addItem('Tom');
[code]....
When I try to submit, I get an error like it could not find the file form.php+txtName=undefined+cboName..... something like that.I dont know how to get that checkbox thing working to send a variable out to my form.php
View 7 Replies
Mar 17, 2005
I am trying to put a form into my website but its not working.Im using a php language....
View 13 Replies
Jan 7, 2006
I am using XML to load an external SWF that has a form using PHP. (Tutorial from, also using XML box resize tutorial to load from with XML) The form works, as far as sending the email correcly, but it does not goto the next frame that says with back button, so it may be confusing to the user if it doesn't do anything when the click send.On the form it has this actionscript attached:
onClipEvent(data){
// show welcome screen
_root.nextFrame();
[code].....
View 2 Replies
Apr 3, 2007
I can't seem to get the proper script to get a checkbox working for a form
View 2 Replies
Aug 27, 2009
Ive been trying to get an email validation working for my form. It works great locally within flash preview, but not locally via its html window, or live. Im not a coder & am self taught to the code will be pretty shabby! (trial & error type gal!)
This is on my send btn,
Code:
on (release) {
if (form.name == null && form.email == null && form.message == null) {
errmsg = "oooh, you didnt write anything";
} else if (form.name == null) {
[code]....
When live it doesnt allow sending if the criteria arent met, but doesnt display the error messages either,
View 1 Replies