ActionScript 3.0 :: Load XML And Grab Data To Send As Variables To A PHP Form

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


Similar Posts:


Data Integration :: Load/send XML Data Via HTML Form?

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

Php :: Cannot Send All Of Flash Form Data

Apr 6, 2011

I have a flash form that sends a monthly report that users fill out to a php file, which sends it to a MS SQL database. This issue I am having is that anything larger then 1300 characters entered into the flash form will not work at all. If I reduce the amount of text to 1300 characters or less, it will send it to the php and database just fine. My research shows that a flash variable should be able to handle 65,000 characters, and when I trace my output from flash to php, all of the data is being traced. however, it is not being send to php. I am using LoadVars to send the data with _GET. So is this a php issue, or a flash issue? I ran a php info page and my max_post is set to 10M that should be enough to handle this load. I am not sure why it is not working with anything larger then 1300 characters. Below is my code for my php and flash files.

The variables that are affected by this are the testEvlauation, projects, support, and programManagement variables. I need them to send at least 8000 characters a peice to the php file.

Flash Code:

on (release) {
sendData = new LoadVars();
sendData.contractor = contractor.text;
sendData.name = name.text;

[Code]....

View 1 Replies

ActionScript 2.0 :: Send Data (not In Form) To PHP

May 1, 2006

I have a page on my website that allows users to download some files using filereference. When the user clicks on the button to start the download, I want to pass the name of the button (the name of the file they are downloading) to a php script to put in my database, so I have a record of who download what.

I have no problems passing normal form data to php using the loadvariables, but since I want to send info that is not an input text box, I have no idea how to go about doing this.

View 8 Replies

ActionScript 3.0 :: Send Data From Flash Form To PHP?

Feb 11, 2009

I have a flash form (widget) on a website that the user can enter details (or select them from drop down menus).

There is then a submit button at the bottom.

This is quite primitive, and as far as my flash allows me. The bit I am stuck with is that I need to send the data then to a .PHP file that will then forward this to the correct people (this bit is already done for me).

sending this information (e.g. Phone Number, Country, Language etc) to the .PHP file.

View 3 Replies

ActionScript 3.0 :: Send Both Bytearray And Form Data?

May 11, 2010

I'm currently working on a small project. The user is supposed to draw/do a puzzle within flash, and also fill out a form with his details and comments.

When clicking the send-button, the image should be sent along with the form as an email.

I already know how to send the image as an email via php, and I know how to send a form as an email via php, BUT - I can't seem to do it together.

I've googled a bit and I found out that I cannot pass both the bytearray (from the image) and the form-data as URLVariables at the same time.

One way I got it to work is by passing the values from the form-data as a part of the URLRequest (and then use $_GET in the .php-file), but this has limitations as it can only pass 100 characters. As the user should be able to comment on his work, using GET with its limitations isn't an option.

View 2 Replies

Data Integration :: Send Email Form To ColdFusion?

Apr 7, 2007

I am trying to send data filled out in a form in my flash movie to send mail using CFMAIL. In my form that is in Flash I have variables set. Then when the button is pressed loadVariables("sendMail.cfm", "POST");

Then on my CF page I have this:

<cfmail from="info@mysite.com" to="#FORM.email#"
SERVER="mail.mysite.com" >
#FORM.comments# #FORM.company# #FORM.name#
</cfmail>

I can't find a tutorial on this. Everything is PHP. And I don't want to use "Flash Forms in MX7"

This is all embedded in my Flash web site.

View 2 Replies

Ruby On Rails - Send Form Data To HTTPService?

Aug 5, 2009

The form is in a component lauched as a popUp, form data consists in:

login:String
password:String

I thought of a few different ways, but I don't like them..in the popUp, send button triggers a function that gets the form values and stores them in an Object, then saves the Object in the model, then dispatches a CreateSessionEvent. The CreateSessionCommand execute method is called, and it send the HTTPService passing the object from the model. (but then what if the model somehow doesn't get update and I send the same request twice?) I could try to get the form data from the command execute method itself.. how can I access them though, since it is a popUp (created with PopUpManager.createPopUp(this, LoginDialog),true))

I'd love to see an example flex+rail with restful xml application by the way, know of any?

View 1 Replies

ActionScript 3.0 :: Send The Form Data To A MySQL Database?

Feb 28, 2011

What I am wanting to do is create a "registration form" and send the form data to a MySQL Database. Once the user submits the form, a password is created and emailed to the user.

Then once all has been created and stored, the user can log in and gain access to secure pages.

View 9 Replies

Data Integration :: Load Data Into Form - Edit Then Save

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

Data Integration :: Php Document And Send The Variables To Flash

Apr 6, 2009

I need to build a really simple php document and send the variables to flash, I'm following a simple tutorial where PHP document:

[Code]...

View 3 Replies

Data Integration :: Send Variables Stored In A Ms Sql Db To A Flash

Jul 18, 2008

Im having a bit of trouble integrating dynamic variables pulled from a databse using an ASP script with a flash movie.

Background:

I need to send variables stored in a ms sql db to a flash movie to display several values.

The dyanmic element comes in because i am using an ID to select the values from the db e.g id1 = joe bloggs id2 = paul smith

etc

When i am hardcoding the id in the asp script the variables are sent to the flash movie no probs and they display correctly.

I am also printing the asp code on the page and that all displaying fine.

HOWEVER, the issue arises when i make the asp code dynamic and by that i mean I am using request.querystring to pull the id

from the URL - The print out of the asp code is still displaying the correct variables, BUT they are not being passed to the

flash movie at all - the placeholder is blank there isn't event an error!!.

Couple of things to note -

- if you change the id bit of the url in the dynamic script to the printed asp code changes

- THE FLASH MOVIE IS IDENTIAL in both scenarios

- all variable names have remained the same

- it is NOT a location of file issue as we have tested the dynamic code files In another folder and no joy

- we are not using any other file includes or asp code in any of the page - all other code has been stripped out

THE ISSUE WE HAVE IS THAT THE PRINTED VARIABLES ARE NOT BEING PASSED TO THE FLASH MOBIE in scenario 2 where the asp code is looking for the participant id dynamically (i.e from the URL)

View 1 Replies

ActionScript 2.0 :: Load And Send Variables To PHP?

Apr 20, 2010

I need to retrieve data from a text file, sort it with a new added score, and then turn the whole data back into a string and save it back into the text file.

I have worked on mini .swf files and php files, and I can seperately:

- retrieve data from a text file to Flash

- do the sorting in Flash from a string coming from a text file

- send a string to a php file and save it on a text file

But I cannot seem to do the three at the same time! Here is my [code]...

View 0 Replies

Load Variables With Flash Form?

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

Data Integration :: Send Variables To Database Without Opening Broswer?

Mar 12, 2007

I have a standalone flash app that needs to get user inputand send it to a remote server / database. When I use the methodbelow, a browser window opens which I don't want to happen - I wantthe data to be sent but not display the page.

my_lv.fname = fname;
my_lv.lname = lname;
my_lv.emailaddr = emailaddr;

[code].....

View 1 Replies

ActionScript 3.0 :: Load Data From Different Variables - The New Variables Come Back As Undefined?

Jun 15, 2010

I'm writing code that takes data from mysql that's processed by a PHP script. It's actually a bit bizarre, at least to me. Anyway, here's some basic AS3 code that's moving toward what I want to do:

var loader:URLLoader = new URLLoader();
var urlRequest:URLRequest=new URLRequest("receive.php");
urlRequest.method=URLRequestMethod.GET;[code]....

For some reason, the statement "trace(evt.target.data);" produces a whole pile of garbled text before the actual stuff that it's supposed to show Because of problem #1, I've had to include a throwaway variable at the beginning, otherwise the first variable I try to pass into AS3 comes back as undefined. This causes errors when I run my flash movie in the IDE, but when I run it from the browser it doesn't seem to have any effect.But this is the strangest thing of all whenever I make any changes to the database (and subsequently try to load data from different variables), the new variables come back as undefined. For example, let's say that I add another entry to the database, and decide to load students 2, 3, and 4 instead of 1, 2, and 3. When I do that, any new data I've added comes back as undefined, even though when I view the PHP output in my browser, it looks just fine.

And now for the REALLY bizarre part: I'll copy that output, paste it into my PHP script as an echo statement, comment everything else out, and my flash movie runs fine. Even though the output from the PHP script is exactly the same, it gives me errors.

View 9 Replies

Actionscript :: Load Variables From A File And Send It To A Dynamic Text Box?

Jun 17, 2011

I'm pretty inexperienced with actionscript, and I'm having the hardest time trying to figure out how to load variables from a file and send it to a dynamic text box. The content of an external file, "varload.txt", is "name1=John". Here is actionscript of my flash file:

[Code]...

View 1 Replies

Data Integration :: Firefox 2.x Sending Variables To PHP Scripts With The LoadVars.send / POST Method

Dec 29, 2006

There seems to be a problem with Firefox 2.x sending variables to PHP scripts with the LoadVars.send/POST method.

<br>

The same problem doesn't occur in IE or Opera. <br>See this url for example to try in both FF and IE/Opera: here. <br>The source files are here g.zelenka@iinet.net.au

View 4 Replies

Simple Flash Form Variable - Collect Data From A Form, Then Pass That Data To An Asp File?

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

ActionScript 2.0 :: Creating A Flash Form And Using .php To Send The Form To Myself?

Sep 16, 2005

I was following 1 of the flash tutorials about creating a flash form and using .php to send the form to myself.I've followed all the instructions but upon uploading, the file just doesn't seem to work. I hope to have some kind of form in my new website.

View 4 Replies

Flash :: Send/load Data To/from Server Side?

Mar 26, 2011

How many possible ways to send/load data to/from server side data sources and what are the conditions of using each method.

View 2 Replies

ActionScript 3.0 :: Grab Class Variables From Loaded SWF?

Sep 22, 2009

I have a project that works quite beautifully right now. I have come to my next task. Creating swfs that are loaded into another swf. This newly loaded swf needs to grab some variables from the main swf's document class or global variables class that I have created. I have set the class path as such that it can access the classes as needed. I did not set a document class.

Structure of loaded swf:

core.swf -> loadedBackground.swf -> interactive.swf

1.) Classes are all located in a folder titled classes

2.) cores.swf is outside the classes folder and is linked to document class within the classes folder: BuildCourse.as

3.) swfs folder contains the loadedBackground.swf and interactive.swf

4.) How can interactive.swf grab variables from the main.swf after it is compiled?

View 3 Replies

ActionScript 2.0 :: LoadVars - Grab The Number Of Variables?

Apr 20, 2004

I'm trying to grab the number of variables I'm loading using LoadVars.

View 5 Replies

ActionScript 2.0 :: Using POST In A GetURL Just Grab Any Variables On The _root?

Dec 19, 2006

I need to send a variable (zipcode) to a coldfusion script and also load the cf page that displays the results (same script) in the browser window (_self) is getURL the appropriate choice for this? (never done it this way before). if so, does using POST in a getURL just grab any variables on the _root? where does it get its variables?

View 3 Replies

ActionScript 3.0 :: Grab Information From A Text File And Save Them In Variables?

Jan 4, 2012

I got a request today conserning .txt files.What I want to accomplish is to grab information from a text file and save them in variables (or an array, depends).Whats the best way to do this, and whats the do's and don'ts?I'm planning to use the LoadVars class to pass the variables through and i've got a working test, but isn't there a more efficient way to do this?

View 9 Replies

ActionScript 2.0 :: Send List Of Variables From Php To Flash And Send Back Random Selection To Php?

Nov 16, 2010

I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.

I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.

View 2 Replies

ActionScript 2.0 :: Send List Of Variables From Php To Flash And Send Back A Random Selection To Php?

Nov 16, 2010

I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.

View 6 Replies

ActionScript 2.0 :: Load Data Into Variables?

Aug 27, 2004

I am trying to load data into a variable. [code]...

View 1 Replies

Data Integration :: Load XML Variables To Flash?

Dec 12, 2006

I have my XML data loading into my SWF OK. However, is there any way to call that tag name instead of the child node number?So instead of something like this[code]...

View 2 Replies

ActionScript 2.0 :: Load Data From Textfile Into Variables For FOR-Loops?

Feb 29, 2004

I'm making something like a dynamic Picture Viewer, wich should display Pictures named by photo1, photo2, etc. dynamically from an url I give the viewer as a parameter. Thats not my problem by now, my problem is that I try to give the viewer few "parameters" through a text-file

NumberOfPictuers=12

I load this file like this

loadNumber = new loadVars();
loadNumer.onLoad = function()
{

[Code].....

View 2 Replies







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