ActionScript 2.0 :: Run External PHP Form With Variables
Feb 4, 2009
I have a flash form. When the send button is pressed, I need to access a php file from another server that sends the email. I need to access the php file like this: [URL], writing the 2 variables, var1 and var2 in the link. I tried like this:
Code:
var sendData:LoadVars = new LoadVars();
link = "[URL]" + value1 + "&var2=" + value2;
sendData.load(link);
This works when I test my file from Flash. But when I upload it to a server, it doesn't work anymore. Why is that?
View 1 Replies
Similar Posts:
May 22, 2009
My brain has finally started draining out of my ears... which brings me to here for help. I don't know coding at all. I know simple stuff, html, dhtml, css, simple stuff... even simple AS 2.0. AS 3.0... not so much.
I'm totally lost. I'm trying to create a form to send using php. I'm fairly sure the php side I can do.I have 5 text boxes, and 5 checkboxes. No idea where to even start. I've done a lot of searches, mainly on this site and actionscript.org. But I haven't found anything that makes sense. Could someone please help, or direct me somewhere? I'd like to get validations in there too, but honestly, where do I even start??
View 5 Replies
Dec 26, 2009
I have a simple flash form I put together (can be viewed at [url]... I have 4 input text boxes (name1, email, phone, and message1). Frame 1 is the form, frame 2 is the success message, and frame 3 is the message failed frame. The submit button has the following ActionScript attached to it [code]...
View 6 Replies
Dec 27, 2011
I am using this code. The input text fields names are Name and Home.[code]...
View 1 Replies
Sep 16, 2009
The project is a simple flash application that queries a weather content provider, retrieves an XML file containing weather data, then uses that data to display weather information. In addition to being used on the web, the application is also being used on digital signs, terminals, etc:
The application is sold to hundreds of clients, who specify their location, desired layout / theme / colors, and other variables by passing variables to the SWF file via a query string. For instance, a client located in Greenwood, Indianapolis, might use the following code to embed/run the SWF file[code]...
View 6 Replies
Sep 22, 2009
I have 5 scene's in my flash the first 3 scene are animations. 4 th scene has 4 textinput Box 1 chk box, 1 button.. in this scene i am passing varibles from my form to php file. here is the code For scene4( i called this Inscription form) Its getting datas perfectly.
[Code]....
View 2 Replies
Dec 9, 2009
I am using the Kirupa email form to gather some results on a form...How can I load variables from 2 different movieclips to post in the php? I tried...
_root.loadVariables("email.php","POST");
_root.myMC.loadVariables("email.php","POST");
View 1 Replies
Apr 17, 2009
I currently have a login form in flash that needs to pass variables to a PHP script. That part works fine. The problem I am having is that when Flash passes the variables to PHP, it also passes the style of the input text.
For example, instead of passing "atomstore", it passes "<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">atomstore</FONT></P></TEXTFORMAT>".
This does not match the "atomstore" in the database and results in an error. How to get rid of all of these tags?
View 4 Replies
Apr 21, 2010
Sometimes, multiple times a day in fact, users of my web application are submitting a certain form which has about a dozen form fields, half of which are hidden fields, and half of the $_POST data is simply not present in the processing script. Note that the fields that are not present are at the very bottom of the form. I know this because this raises a fatal error, and an email is dispatched to me which includes the post data. And of course, neither I nor any of the developers on my team can reproduce the problem. Flash is involved in the process, as I'm using a library called Uploadify to display a progress meter. Here is the flow...why some of the post data would be getting wiped out?
-User visits edit screen for a page in the CMS I am using.
-Record id for the page is put into a form as a hidden value.
-User clicks the Uploadify browse button and selects a file (only single file selection is allowed).
-User clicks Submit button for my form.
-jQuery intercepts the form submit action, triggers Uploadify to start uploading, and returns false for the submit action (manually cancelling the form submit event so that Uploadify can take over).
-Uploadify uploads to a custom process script.
-Uploadify finishes uploading and triggers the Javascript completion callback.
-The Javascript callback calls $('#myForm').submit() to submit the form.
This happens on multiple browsers (Firefox 3.5, 3.6, Safari, Internet Explorer 7, 8) and multiple platforms (Mac OS 10.5, 10.6 and Windows XP, 7).
View 6 Replies
Aug 26, 2011
I've got a flex app that is basically completed it uses Zend AMF to connect/supply data.My app does have a login screen which seems to work fine. Now I'd like to add another login form on my site that would allows users to enter in username/password. When submitted form should pass the data to the flex app and bypass the application's login.
View 2 Replies
Jan 6, 2012
I'm trying to generate the contact.php for a website, but it's not filling in the fields.Right now I have this:[code]
View 1 Replies
Jan 14, 2011
I'm trying to get this code to work dynamically:
ActionScript Code:
var imageArray:Array = String(imageArray0).split(",");
filePre.preload(imageArray);
I have a variable, _global.buildingNumber that I want to show up after imageArray so Flash loads the desired array.
This doesn't work:
ActionScript Code:
var imageArray:Array = String(imageArray+_global.buildingNumber).split(",");
filePre.preload(imageArray);
View 0 Replies
Jan 10, 2012
I am using a ready made PHP form ( i cant edit it), and i should pass the following variables from flash:
t[name]
t[email]
But unfortunately flash does not support these characters "[" "]".
View 11 Replies
Oct 20, 2009
hoping to shed some light on senocular Flash-Based Email Form Using PHP tutorial [URL] basically have added more fields and giving them there different variable names but cant work how to add the extra variables in the php script almost certain it goes here in the php script but just cant work it out
[Code]...
View 14 Replies
Jan 19, 2010
having trouble accessing variables from the main timeline from within my class...this is a function within my class...(not the constructor function)
Code:
public function createPanorama():void {
var url:String = "../../../panorama/panoramaImg/fenway.jpg";
[code]......
View 6 Replies
Dec 12, 2004
I have a question. How do you pass variables from flash to php? What I wanna do is, get the username and password entered in this form made in flash, when the submit button is hit, it will open and send these variables to login_processor.php. If the info is put in correctly, it will take them to a different page. The login_processor.pgp works for html form, but not for flash. In flash I have two input texts, and I gave them each their own var names.
[Code]...
View 1 Replies
Jan 12, 2011
I am trying to create dynamic variables to post to a form based on the content of some xml.I have loaded 15 objects which act as buttons into my movie and each button will trace the exact title as wanted. What i want to know is that when i click the button the title is stored in a dynamically created variable to be used later for posted to a php form.
PHP Code:
// sprinkles function
function GenerateSprinkles(sprinkles_xml) {
[code].....
View 1 Replies
Mar 2, 2012
I have an embedded image and the class name to be userd in source tag is a combination of 2 variables, how to do this, below is an iadea of what i am trying to do:
[Embed (source="assets/image11_a.jpg")] public static const 11_a:Class;
var first_part:String="11";
var second_part:String="a";
and in mxml
<s:Image width="100" height="100" source="{first_part+second_part}"/>
above is just a small simplified example of what i am trying to do, actually the variables are getting populated from list.Basically i want to combine variable names to form the embedded image class name to be used in source of spark image.
View 1 Replies
Oct 30, 2009
I am trying to make a form in Flash that has multiple variables, i then want to use a PHP form to send them in an email but can't get it to work. I think that I'm not properly setting up the PHP file for multiple variables:
<?php
$sendTo = "00000@gmail.com";
$subject = "Visitor";
[code]...
View 1 Replies
Jan 12, 2011
I am trying to create dynamic variables to post to a form based on the content of some xml. I have loaded 15 objects which act as buttons into my movie and each button will trace the exact title as wanted. What i want to know is that when i click the button the title is stored in a dynamically created variable to be used later for posted to a php form.[code]
View 1 Replies
Nov 4, 2009
I am doing a simple form "POST" and I need to include some hidden field information. My problem is that my hidden field identifiers are formatted like this: 00N3000001NzMD. So when I declare the variable I get a syntax error. var 00N3000001NzMD = "eMarketing" I'm assuming this is because you are not supposed to have a variable that starts with a numeral? The logical (to me) work around would be to do this:
[Code]...
View 1 Replies
Jun 26, 2007
Passing a html code to flash code..[code]...
View 1 Replies
Sep 3, 2009
I have an .SWF that is a "Share With A Friend" and the text fields are filled in and then the SWF sends the variables to sendToFriend.php and then the email is sent out.. The PHP is working fine and I have all the right codes to send that information from the SWF to to PHP, but the client wants another feature I can't figure out..
They want me to grab data from an XML and use those variables as well, because the XML will have the USER EMAIL and I need to grab the specific data from the XML and I can't find anything that does this..
I barely know where to start. Maybe a simple tutorial that doesn't just load the XML and display the content (I have found that), but rather something that loads the XML, then refers to a specific child and turns the text to a variable to get sent to PHP..
EXAMPLE XML
<client>Joe</client>
<email>JOE@JOE.com</client>
How do I load the XML and directly refer to the <email> information so my PHP file can grab "JOE@JOE.com" ???
View 0 Replies
Sep 28, 2010
I have a custom form that I want to implement and I am having a problem figuring out how to do so. I want to have it work like an inner popup where it blurs and unblurs the background image (like the schedule from hbo.com).[code]...
Lets say I load a section called home.swf into the section loader. Within the home.swf I have a button for someone to call up the form.swf. Is it possible for the form to blur the random background image when loaded then unblur it when it's done?
View 0 Replies
Mar 1, 2011
I am trying to make an external swf load into the main swf and have the input text work.
View 5 Replies
Sep 28, 2010
I have been working creating a fla file that loads several swfs and random background images. However, I have a custom form that I want to implement and I am having a problem figuring out how to do so. I want to have it work like an inner popup where it blurs and unblurs the background image (like the schedule from hbo.com).
Here's my setup:FLA file contains-UILoader for swf sectionUILoader for random background image
Lets say I load a section called home.swf into the section loader. Within the home.swf I have a button for someone to call up the form.swf. Is it possible for the form to blur the random background image when loaded then unblur it when it's done? If so how would you recommend I go about programming it. **I also have no idea how to unload it.
View 1 Replies
Jul 25, 2010
I have a simple form mailer on my page. This form mailer is linked, like all the other form mailers, with an external php file.It was working pretty fine, until one day it never sent the content.I fired up firebug and checked the Network activities. My POST request shows up as expected and the parameters are set correctly.But still, the mail is empty. So I put an error_reporting(E_ALL) in the beginning of the file and it is telling me the notice:Undefined index:Is there anybody who experienced this before and probably has a solution or a hint concerning that problem?Here's the code:Contact - Document class:
ActionScript Code:
public function Contact()
{
[code]....
View 1 Replies
Aug 8, 2011
I am trying to load an external swf image gallery onto a page in my website. I am new to action script and coding itself. I have spent the last five months perfecting my website and now am at the last stretch with just a couple minor issues but it is taking the life out of me trying to figure this out. I have tried to do the empty mc but just can't seem to get the swf to load. I don't know if I'm using the right code or even putting it in the right place. I even tried to use a preloader that I down loaded but keep getting an error Security Sandbox Violation when i load my external swf.
What I am trying to do is get the swf to load on the page that slides onto the stage when I select the gallery button. The main page is set up with a stationary bar with five buttons. One is for the gallery page that loads and that's where I want the swf to load when it slides onto the stage. I am using CS5 and AS 2.Here is the link to my site.I am also having issues with my contact form. I have deleted code and added code that I have found on many different sites but nothing I have tried has workedI am not to worried about the contact form if it's not an easy fix as I can buy one for 5 bucks.I am even willing to pay a small amount through PayPal to buy you a couple rounds or something for your time.Also don't be alarmed by the screeching sound when you click on the page links. it's only for a couple pages then it goes away. Has something to do with the MP3 music I added. Trying to get that taken care of now.
View 9 Replies
Oct 20, 2010
I'm currently working on a flash site, which consists of a "Main" SWF file that has buttons to load external SWF files. I figured out how to make the external SWF files show on its own layer below other layers on the main time line of the Main SWF. I created a blank movie clip file on it's own layer of the main time line and used this to call out to it:This worked perfectly. The website so far works perfectly with each page of the website being an externally loaded SWF. The problem I came across today though, is that buttons and text fields within the external SWF files don't work when they are loaded onto the "Main" SWF. They only work when I open the external SWF files individually. I really need to figure out how to make buttons and the text fields within the external SWF files when loaded onto the "MAIN" SWF.
I first came across this problem when I tried adding a form that I created to one of the external SWF files called guestlist_page_swf.swf. The form works on its own when I open that SWF individually, but when I try to load that SWF file with the form as a page on my "Main" SWF, the mouse doesn't even recognize that the submit button is a button, and it doesn't allow me to click on the text fields. Here is the link to the site I am having the problem with:
processing_mc.visible = false;
// Clear the form fields
first_name_txt.text = "";
[code]....
View 2 Replies
Oct 20, 2010
I'm currently working on a flash site, which consists of a "Main" SWF file that has buttons to load external SWF files. I figured out how to make the external SWF files show on its own layer below other layers on the main time line of the Main SWF. I created a blank movie clip file on it's own layer of the main time line and used this to call out to it:
this.mySWFLoadingClip.addChild(loader);
This worked perfectly. The website so far works perfectly with each page of the website being an externally loaded SWF. The problem I came across today though, is that buttons and text fields within the external SWF files don't work when they are loaded onto the "Main" SWF. They only work when I open the external SWF files individually. I really need to figure out how to make buttons and the text fields within the external SWF files when loaded onto the "MAIN" SWF. I first came across this problem when I tried adding a form that I created to one of the external SWF files called guestlist_page_swf.swf. The form works on its own when I open that SWF individually, but when I try to load that SWF file with the form as a page on my "Main" SWF, the mouse doesn't even recognize that the submit button is a button, and it doesn't allow me to click on the text fields. Here is the link to the site I am having the problem with, and the problem page is the Guest List page:
[URL]
Below is the code from my Main SWF file and the External SWF file with the form on it:
MAIN SWF:
var Xpos:Number = 0.0;
var Ypos:Number = 192.5;
var swf:MovieClip;
[Code].....
View 5 Replies