ActionScript 3.0 :: Send Data To Php?
Feb 12, 2010I have stored all the data in an object. Now I have to send the data to php.
View 4 RepliesI have stored all the data in an object. Now I have to send the data to php.
View 4 RepliesI searched around and found some helpful things, but I am still missing something I think...
LoadVariables() won't work across domains, right, so, is it porrible to send data to a CGI script via getURL and not have a popup window on send?
I would like my flash to act differently depending on what html page it is on. Can I send information from html code to action script?
View 1 Repliesi have a problem regarding the integration between flash and ASP file i have an ASP file that gets a record set from the database i don't know how to send this record set to flash and place it in a data grid
View 4 RepliesI need to send a byte array of data (its an image source) along with a bunch of other vars to a service.If I send the byte array using something like the following
var request:URLRequest = new URLRequest ( 'http://www.mydomain.com/upload.php' );
var loader: URLLoader = new URLLoader();
request.contentType = 'application/octet-stream';
[code].....
I have a site with an SWF that I can put some metrics into, such as ZIP Code, Weight, etc.. then, it takes that info and gives me shipping rates.
I need to build a front-end site that I can have a forms page that will push data to the backend SWF, and then return the data back from the SWF to the front end.
Front-end -> SWF (Zip Code, Weight, Size) -> *Calculates* -> Front-End
That should be the flow.. So I need to send data to the backend, GET the data that it calculated, and return the results to my front-end.
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
Using localconnection i can send data from one swf to another.
[Swf 1] Send data to [SWF 2] - This works with LocalConnection
[SWF 2] Sends this data to [PHP script]
Is there a way to send data from SWF 2 to PHP script without post data? or what would be the secure way to do it?
I would like flash to send and receive data from mysql.
To send data I would like to create 5 input fields, and then use a submit button.
Then to retrieve the data I would like to use the data grid or a dynamic text field.
I am the fan of kirupa but this is my first thread in forum. I have some problem with sendAndLoad method with actionscript 2.0. I am developing a online game with flash mx , MS SQL 2000 and asp. The problem is I send the data using sendAndLoad method to asp file and get data back from asp file. But when the internet connection is not good there is a problem like jam or lost packets. How can I prevent the lost of packets. Some of the data are important. Is there any way to solve this?
View 1 RepliesIs there some way so send data from air application to php file on the server?
View 1 RepliesSo, I have learned how to actually send data from Flash, but how do I in ActionScript send data every 3 second?
View 1 RepliesI tried the Example: Simple Editor which sends and loads data from XML file but it didn't work. Does anyone know why?? I really need to send data to xml but I couldn't find a way of using XML.send correctly!
View 4 RepliesAttached is the .as file. Here you will get an example how to send data to php.
View 1 RepliesI am working to send data from as3 to php and I am having a little trouble with it. I am new to both AS3 and php but at this point I think I am doing fine.
The project is simple it just takes two values from as3 and send its to php. But apparently I am not able to send variables from as3 to php. Here is the code(its very simple code)[code]...
I would like to send some data, from an input field and some dynamic fields without opening an new page or replace the existenceto a URL... I tried this�.
Code:
function sendForm() {
my_lv = new LoadVars();
my_lv.baseId = _parent.baseId_text.text;
[Code]....
Send data from Flash to PHP = Possible. Is it possible the other way? ( for example, send a variable from PHP to Flash ). If it is, how secure is it? Can people see the data that was sent?
View 8 Replieshow to send some data from as3 to a database. I did a little (in fact a lot) of research, and found something useful. But it doesn' t work ... Here's my code:
Actionscript Code:
private function confirmPayment():void { [code]............
I was wondering how to send some data from as3 to a database. I did a little (in fact a lot) of research, and found something useful. But it doesn' t work.[code]
View 1 RepliesI have got to send sth by ASP in Flash. I wrote some code but this doesnt work.[code]If I just click on email. asp without Flash, I will get a email from there. But if I use the above method to call that page, the email wont be sent. So do anyone know what wrong?
View 3 RepliesI create an xml in flash and want to save it on the server. i user my_xm.send("script.php"); to send the created xml, but don't know how to handle it in PHP in order to save the file on the disk.
View 2 RepliesI have two classes, main class and data class. Main class creates a few instances of data class and it also has a variable for collecting messages from this instances. So the code goes like this:
import myData;
public class main extends MovieClip{
var report:String;
[code].....
There an input textfield, name.text. There is a button with the following script,
send.onPress = function () { getURL ("name.php", "_blank", "POST"); }The info will be send to MySQL database, name, when pressing the button.
PHP---
<?// Receiving the variables.$name = $_POST['name'];
// Printing out the variables.print "Your name is ". $name . ".";
?>
I am not able to perform the task.
I am creating avatar for website. After selecting avatar it store to the database and how can send it as php variable.
View 4 Replieshave used the code from to send xml data to php...I don't know y i am having problem acessing data in php.
View 2 RepliesI'm trying to get some data from PHP/MySQL and send it to Flex..Let's say That my object in Flex would look like this:
package some.package.VO {
[RemoteClass(alias="VOPerson")]
[Bindable]
public class VOPerson {
[code]....
In my case, personDetails is an Array, and in theory, it could be some other object... But is it really necessary to make it an object? I do not intend to use that data nowhere else except within my VOPerson class. It is some associative array, and I can easily transform it to another object, but there will be lots of similar situations in my app, so I would like to avoid making unnecessary (value) objects if there is no need for it...
Beside swfaddress is there any other way to send data from a html page to a swf application? What I need is when a user clicks on html contents to change information inside the swf.
View 1 RepliesI want to save a screenshot from my Flex app on the Webserver (LAMP). Here is the Flex code:
[Code]...
I'm wondering how to send data from AS3 to CakePHP. I know I can use URLVariables to send data to the URLRequest and ge that data in PHP using the superglobal $_POST. However, for some reason I can't access the variables in a CakePHP action.In my action I get the data using the following:[code]but this is what I get in return:[code]I have set responeType to "Error" and response to "Data was not.." manually.[code]
View 1 RepliesI want to send xml data to php page
my xml in flash is that for examle:
<level id="1" mark="10"><page id="12">HI..</page></level>
i send it,but at the URL i see this:
../inex.php?xml=<level id=1 mark=10><page id=12>HI..</page></level>
without double qout....!!!!
so i can't read this xml with simplexml_load_file() function in php