Php :: Get Some Data From PHP/MySQL And Send It To Flex?
Jan 1, 2010
I'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...
View 1 Replies
Similar Posts:
Jun 17, 2007
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.
View 6 Replies
Oct 30, 2010
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.
View 1 Replies
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
Jul 26, 2011
I am using FB for PHP 4.5, ZendAMF, and I read that I do not need to use HTTPService for what I want to do.
Table structure:
people: {pID, pName}
departments: {deptID, deptName}
people_departments: {pID, deptName}
I have a slightly complex flex script, People.mxml. In the PersonAdd state, I have a form which will be used to send data to the mysql server. In that form , I have a repeater that will create a checkbox for every department in my database. When I click the Add button, I want to insert data into the people and people_departments tables.
[Code]...
[Edit] I am using an s:Checkbox and I do not have the data property. mx:Checkbox does but I cannot use the mx:Checkbox component in my project.
View 2 Replies
May 25, 2011
Is there a way for different flex swf's to send large blocks of data between each other without using localconnection which is size limited or using sharedobjects. This needs to happen on the client without server communication.
View 2 Replies
Sep 24, 2009
have 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 Replies
Aug 5, 2010
I want to save a screenshot from my Flex app on the Webserver (LAMP). Here is the Flex code:
[Code]...
View 1 Replies
Feb 2, 2011
I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend. The client changed the requirements - now they want to distribute it on a CD where the user can just run the app without any installation or a network connection.
To do this, I certainly need to eliminate the web server and the database server and adapt my application (with as few changes as possible, of course) to a stand-alone application that will fit on a CD/DVD. I've managed to export the data to XML and read it into Flex, but I'm wondering if there's a way to recreate the Hibernate data structures in Flex so I could change as little code as possible. Failing that, is there any way to keep the existing Java/Hibernate external to the Flex code but retrievable without installing Apache Tomcat or MySQL?
View 3 Replies
Jun 2, 2010
I'm trying to send some data to PHP using HTTPService POST but for some reason it's not working. The same example works with GET but not with POST:
private function start():void{
var param:Object = {};
param.date = "2010-10-10";
[code]....
But when I change the method in HTTPService to GET and in PHP I get the result as expected - PHP sends back the date:
2010-10-10
View 1 Replies
Jan 27, 2009
im calling a module in my flex app, but i need to send it a variable and have no idea how this is done (both sending the variable and then the module retrieving it)...basically, the module generates a tree which gathers data from a PHP-generated XML...so I need the data that is sent to the module to be sent to the PHP file to show the details depending on which page the user is on.
Code:
<mx:ModuleLoader url="lists.swf" width="30%" height="100%" />
just a thought, if I were to add "?id=3" to the SWF, would that work and how would I retrieve that value in the module to use?
View 1 Replies
Feb 17, 2012
I wrote a little test program to learn about mySQL integration in Flash. The program looks as: I have one button and one dynamic text field. If I hit the button, as3 starts an URLRequest to a php file which then connects to a mySQL database. The requested variable is send to as3 and displayed in the text field. Up to this point, everything is working fine. But when I hit the button again, after I updated my db, the text field still shows the old value. Although it should output the current value.
So, here's my as3 code:
mButton.addEventListener(MouseEvent.CLICK, onSQL);
function onSQL(e:MouseEvent):void {
var varSend:URLRequest = new URLRequest("[URL]");
varSend.method = URLRequestMethod.POST;
var varLoader:URLLoader = new URLLoader;
[Code] .....
I really don't know, why the program is not updating the value.
View 3 Replies
Feb 22, 2010
I have a login page (that working), if details is correct, i want to go to welcome page, and display the first name and last of the user.
Is ok to access to the label in the another page, and how can i do that
This is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[Code]....
View 1 Replies
Aug 8, 2009
What actionscript i need, to send the user balance to my Mysql and save it there. and when the user come back to the game get the same balance from the last time(override the user balance).here is part of the Flash code that in the game:
game_pr.display = function ()
{
_root.display.balance = "<P ALIGN='LEFT'><FONT FACE='04b_25' SIZE='12'
[code]......
View 0 Replies
Dec 7, 2009
I've decide racing car game! and I want to be able to send the score to send to a mail box or send it to a table in php or database! at the moment I can send the Score Variable to be display in PHP but its not the way that I want!
Script that send the Score to php
submit.onPress = function () {
getURL ("getVars.php", "_blank", "POST");
[code]....
View 2 Replies
Mar 11, 2004
I 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?
View 3 Replies
May 23, 2007
I got a music portfolio web site running PHP, MySQL and Flash. There's a page showing all the artists my client worked for and when you click on a song title, this title is passed as a variable to a PHP page then to a Flash page. The Flash page contains an actionscript music player which then looks for the right audio file in the database and plays the song. Everything works great except for the dynamic text field which displays the song title. If the song title contains an apostrophe or a single quote, the Flash dynamic text field then shows the apostrophe.[code]
View 1 Replies
Oct 27, 2009
i want to make a simple chat with flex as3 and red5 media server
my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)
i just don't know how to to send and receive and how to receive from the server
View 2 Replies
Dec 12, 2009
send xml data to the server using HttpService request thr POST in Flex?
View 1 Replies
Dec 15, 2010
Im creating flash game that have the functionality to capture/record its gameplay that can be viewed later by the user, like a replay.
As for now Im already able to record the game and write it into a flv format in a ByteArray variable.
What Im working right now is how to send that ByteArray(the video file) to a php script and save it to a web server.
I've run into the URLLoader in flash where it can send the data and php will receive it thru the POST method. Unfortunately, the ByteArray containing the flv data must be first correclty encoded for php to read it. I figured this out from the example in the net where it does the same thing only that it is only sending a JPEG ByteArray instead of a FLV format using the JPEGENCODER.
Is there any existing class like the JpegEncoder for FLV format or any Video formats? Or any work around like creating the encoder my self?
here is my current code to send the ByteArray
//send byteArray to a php script
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
[Code]....
View 1 Replies
Jul 3, 2011
I want to send data from Red5 to Flex using remote sharedobject.
my Red5 code :
this.addScheduledJob(5000,new IScheduledJob() {
@Override
public void execute(ISchedulingService jobs0)
[Code].....
it doesn't shows error or warning, but my flex function doesn't work, even Alert in my function not working.
View 2 Replies
Oct 22, 2011
In my table the Collation is:latin1_swedish_ci (but i tried UTF8_unicode too).In my flex application when it shows the table,it displays it correct,with all accent and pointing correct,but in the table is like :
View 1 Replies
Jun 17, 2009
I'm writing a Comet-like app using Flex on the client and my own hand-written server.
I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends).
I also need the server to push short bursts of data at a similarly high frequency.
I'm using NetConnection.call() to send the data to the server, and URLStream (with chunked encoding) to push the data from the server to the client.
What I've found is that the data isn't being sent/received as soon as it's available. For example, in IE, it seems the data is sent every 200ms rather than as soon as NetConnection.call() is called. Similarly, URLStream isn't making the data available as soon as the server is sending it.
Judging by the difference in behaviour between the browsers, it seems as though the Flash Player (version 10) is relying on the host browser to do all the comms. Can anyone confirm this? Update: This is very likely as only the host browser would know about the proxy settings that might be set.
I've tried using the Socket class and there's no problem with speed there: it works perfectly. However, I'd like to be able to use HTTP-based (port 80) connections so that my app can run in heavily fire-walled environments (I tried using a Socket over port 80, but that has its problems).
Incidentally, all development/testing has been done on an internal LAN, so bandwidth/latency is not an issue.
Update: The data being sent/received is in small packets and doesn't need to be in any particular format. For example, I might need to send a short array of Numbers, and this could either be encoded in AMF (e.g. via NetConnection.call()) or could be put into GET parameters (e.g. using sendToURL()). The main point of my question is really to see whether anyone else has experienced the same problem in calling NetConnection/URLStream frequently, and whether there is a workaround (it's also possible that the fault lies with my server code of course, rather than Flash).
View 2 Replies
Sep 17, 2009
I'm new to Flex and couldn't figure out yet how to send binary data to the server as the body of a POST request. The HTTPService component doesn't seem to support this. The FileReference doesn't seem to support setting the data via the Flex API.
View 4 Replies
May 4, 2011
want to browse an image and then send it to data base using flex and webservice java
View 2 Replies
May 19, 2011
i want to know how to send data using the AMF format from my flex AIR project to a socket written in Java. I am getting CorruptedStreamException when sending data using writeUTFBytes() methods. Has anyone experienced similar problems? Also can AMF be used only if i am using LCDS only?
private SimpleServer(int port)
{
System.out.println(">> Starting SimpleServer on port " + port);
[code].....
View 2 Replies
Feb 2, 2012
I have the following JAX-RS service.[code]...
The JAX-RS service receives the request and respond successfully with some dummy response, but I have no access to the request.data field.
How do I access the data of the request message (which is {"type":"get_configuration","data":"some data"} in this particular example)? I think that I'm supposed to add some parameters to the handleMessage method like
public SomeResponse handleMessage(Object message) {...
but this does not work at all. The request got 415 response.
View 1 Replies
Feb 16, 2009
Can anyone help me with getting a message that is said in flash (like a game) go to a mysql database?
View 2 Replies
May 31, 2007
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 Replies
Mar 1, 2007
i 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 Replies