ActionScript 3.0 :: Posting XML To A Database?
Oct 25, 2010
I have an ongoing project that outputs xml data to my client's server via a php script. The client would like to move the XML into a database, and their database company has instructed me to POST the XML to a web address with a form field linked to the database. This produces a server error (if I manually paste the XML into the form it works). In order to get this to work, does there need to be a PHP or some other server side script between Flash and the database
View 12 Replies
Similar Posts:
Apr 12, 2007
There's a common strategy for posting to a database where a serverside page is called, passing it querystring data, in order to add entries to a database.
This is not secure though, anyone can decompile the .swf and hack the database by calling the serverside page with their own info. Does anyone know of a secure strategy that does not rely on obfuscation?
View 4 Replies
Oct 11, 2006
How I can send some text in a dynamic flash textfield to a mySQL database and vice versa? Basically I've created a text field - assuming it has to be dynamic (with an instance name of "tUserdata"), it's going to be multiline text, and upto 255 characters. As the user clicks the submit button, the data held in the flash text field is sent to the mySQL database and stored there. I understand that i have to use PHP as well - and heard i need to use the loadVars function. Need Coding in PHP and connecting to a MySQL database, and what actionscript I need to insert.
View 3 Replies
Jul 15, 2009
i want to intertwine php, MySql and flash. so i can make a flash movie display text that is in the sql database and a php script to change the database, php > sql = i can do but sql > flash = i can't do..i want it so the sql data show's in a text box in the flash movie...
View 1 Replies
Dec 17, 2009
I want to create a Flex 3 application running in Adobe Air that accesses an SQLite database and I need to keep this database in sync with an SQL server 2005 database running a website.Is this something that Flex supports or is it going to be a custom script? Also, has anybody done anything like this?
Edit: The synchronisation can be done on a daily basis rather than real time. The data will be read only from a front end perspective with a CMS to do updates on the website.
View 2 Replies
Jun 7, 2010
I have researched this issue all over and most people say use the .refresh() method to update a datagrid after updating or adding a new record. This does not do anything. So, my issue is this. I have a mySQL database hosted I am connecting via PHP, I have 1 mxml file and 2 php files (I know I can use just 1 but I am learning and this was easier for me to use for troubleshooting). The issue is no matter what I change on the datagrid the update does not show on the datagrid unless I close out of IE and reopen it. I can refresh or open the page in another window and the update does not show. I have to exit entirely and restart in order for any updates or additions to show.Here is my licenseTracker.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code]....
View 9 Replies
Jun 17, 2010
I am working on a function to generate a form at runtime in Flex based on a call to the DB. The call to the DB returns the field types, id, tooltips etc as an arraycollection, the arraycollection is then parsed in order to ascertain what control to display based on the type field in the array - this bit works fine.However, i am stuck on trying to save the form fields back to the database using a CFC.my form rendering code is as follows but how do i save values entered back to the database? rendering code..
[Bindable]
public var getglobalprofileb:ArrayCollection;
public function init(event:ResultEvent):void {[code].......
View 1 Replies
Aug 31, 2011
I have updated the mxml code to only show the needed code for the program to run the update.
I am new to Flex and have an issue I hope you all can help me out with.
I have researched this issue all over and most people say use the .refresh() method to update a datagrid after updating or adding a new record. This does not do anything.
So, my issue is this. I have a mySQL database hosted on 000webhost.com, I am connecting via PHP, I have 1 mxml file and 2 php files (I know I can use just 1 but I am learning and this was easier for me to use for troubleshooting). The issue is no matter what I change on the datagrid the update does not show on the datagrid unless I close out of IE and reopen it. I can refresh or open the page in another window and the update does not show. I have to exit entirely and restart in order for any updates or additions to show.
Here is my licenseTracker.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code].....
View 1 Replies
Jan 17, 2011
I am planning on using Flash Builder 4/Flex to write an AIR application which is primarily based around recording, storing and analyzing data.I'll be creating charts etc that need to update in almost real time.It's essential to me that the application be able to function without an internet connection so I need a local database of some variety,but I would also eventually like to build in online synchronization of the data where either database can be update each other based on newer information. Moreover, some type of encryption would definitely be welcome, and speed is a large concern
Synchronization: Primarily updates/additions/deletions will be done on the offline database, but ideally I want to have a web interface that will allow the same updates/additions/deletions and will be synced (beyond that I'm not sure exactly how to do it as I can model that based on what is most achievable).I'm wondering if there's any prebuilt engine that could handle the synchronization of 2 databases. I may end up having the web interface only be for additions, which would be significantly easier to sync.. and I may start that way, but i want to build with technologies that will best allow me to implement full online crud at some point.
View 1 Replies
Jul 17, 2011
Can I build flash application that connects to database? (MySQL) For example: Photo Gallery that brings me the photos from database...
View 3 Replies
Sep 26, 2011
Here is the issue: a client wants his entire equipment inventory accessible by persons navigating to his jquery mobile site. The inventory that exists on the desktop site was, as I understood, built with Flex. Is it possible to access this database for the jquery mobile site? I believe it is. I was then given this information from someone in the know:
Database:
mlxx.db.xxxxxxx.hostedresource.com
login: mxxx
[code]...
View 1 Replies
Oct 26, 2006
Is it possible to create a database driven website using these alone? Or do i need to learn any other technology? If i do then what should i learn? I know j2se for the desktop and oracle SQL/MySQL i finally got the feeling that i need to learn PHP anyway along with css and javascript. So it is fine. Also another query. Which CMS should i consider? Wordpress or Joomla?
View 1 Replies
Jan 11, 2010
I am planning to develop a standalone application, which infact will be used for personal purposes. So only single user access may be there. I want to develop it in Flex. Just want some opinions from the gurus over here : Whether i should use Flex or AIR (I know only Flex, AIR i need to start learning)Which database i should use? SQLLite or HSQLDB or some other.
View 3 Replies
Jan 15, 2012
I have a database on a server and I transfer the data from it to a web site. So I need to build a flash grid on this site and to load the data on it. But the problem is that I do not know how to do it. So my question is how to build a dynamic flash grid wich is fill with data from a database? Is there a way to do it with action script only or I must do it another way?
View 1 Replies
Sep 24, 2009
all I'm trying to do is set the variable names of two input text boxes and then post those to a php file... in the php file I just want to echo back those two variables
View 10 Replies
Aug 1, 2010
I am trying to use the code below to get the info from the arrays and if the value is +,-,* or / the array value is posted into a new array otherwise it is posted to a number array:
Code:
var i = 0;
operator = new Array();
calc = new Array();
var myArray = ["0","1","+","2","*","5"];
while(myArray.length > 0){
[Code] .....
Which shows the length at only 1??? however the code seems fine from the other trace info.
View 1 Replies
Sep 3, 2011
am trying to use AS 3 (for which I have beginner skill) to send and receive data to/from an ASP page (this ASP page is done) that interacts with a MS SQL databaseThe Flash SWF would send a name and password entered by the user in the SWF to the ASP page; the ASP page script (already written) would check with the DB, return either YES or NO (YES if the name/password is found, NO if not), plus return a score number, and then the ASP page script would write these 2 variables as a response to the Flash SWF (var data = YES or var data = NO, plus var score = 'the score numeric value'.
View 4 Replies
Oct 14, 2011
in my PHP, if I post to two variables, ie:
$myxml1 = $_POST["filename1"];
$myxml2 = $_POST["filename2"];
it all works fine. However, if I post to an array....
$myxml[0] = $_POST["filename1"];
$myxml[1] = $_POST["filename2"];
[Code]...
View 5 Replies
Oct 20, 2005
I have an array that I need to send to a php script to process it.How do I do it? It can't be that hard can it? I can't find any info on it anywhere!
View 5 Replies
Jan 31, 2010
I have a simple form in my flash cs4...I am unable to get it to post to the php script here is the code I have:
Code:
var req:URLRequest=new URLRequest("mailer.php");
var vars:URLVariables = new URLVariables();
[code].....
View 3 Replies
Dec 17, 2010
I'm wondering what is the best way to post arbitrary data to the server in the same format, as forms in web browser? I'm using this thing by now, and it seems it more useful to load data from server, but not the uploads.
View 3 Replies
Mar 4, 2011
I am having trouble embedding a flash file onto my website. I tried another file, which worked.
View 2 Replies
Mar 7, 2012
I am trying to post a "tweet" to my twitter using Flex (using the Flex 3.5 SDK and Flex Builder 4 if that makes any difference). On an mxml file I've created a button simply to make it easy to call an AS3 function, and in the function, I'm making a URL request. Obviously I'm doing something wrong, because my tweet ain't posting. I got these variables in the curl request provided by Twitter themselves, which actually worked. My guess is that I'm formatting something incorrectly, but I don't know what that is. Here is the code I'm using:
[Code]....
View 1 Replies
Mar 30, 2012
Posting Image to Facebook with Flash?
View 1 Replies
Jan 14, 2009
I've created an flash application that will post variables to a PHP page. This PHP page will then take the variables and using GD Libraries, create a JPEG image on my server and save it. I'm writing in AS3 based on the AS2 tutorial I found here.The variables I'm sending are height and width of the image, and then a very long string containing all the values of the pixel colours, with rows and columns separated by characters. (ie ffffff,dddddd-aaaaaa,cccccc). The example here is only a 2x2 image, so a small 400x300 image is 120,000 pixels x 6 characters = 720,000 characters + all the separators! This method is working quite well, but can take about 20-30 seconds to send on a slow connection.My explanation is very long but the question is quite simple. I know you can get progress events and bytesTotal and bytesLoaded on incoming URLVariables, but has anyone discovered a way to track the progress of sending out variables?
View 0 Replies
Jul 17, 2009
Ive been tinkering with some games which post the user's score to a php file, which writes the data to a database... but Ive discovered that in some browsers I get this error. I googled some URLencoding tools for AS3 (came up with URIencode which seems to be connected to javascript somehow?!),
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()[code].....
View 4 Replies
Feb 12, 2011
Is there a simple way to post an image to facebook in a small flash interactive. Its not an air or flex application, just a simple drawing swf. I'm already using the jpeg encoder to allow users to downlaod their image, but I'd love to be able to post the same jpeg.draw(); to post to facebook...
View 3 Replies
Jun 23, 2009
I've got my existing script working to send form information to PHP and it emails back to me just fine.Now I want to keep what I've got and include a check box that sends a "Yes" or "No" to the email message body, depending on whether the state is true or false.I'm assuming this is really easy, and I've fiddled with PHP, I just have no idea how to do it properly after looking at a few places.For reference the instance name of the check box is "contact_tick"Here's the script for Flash:
Code: Select allsend_button.onRelease = submit;
reset_button.onRelease = reset;
function submit()
[code].....
View 2 Replies
Dec 30, 2004
I got to create a web site for school. And I'm going to create a little flash, where someone posts sth very small and the last thing posted is shown in flash, and there is a form where you write and submit.And it should save the stuff posted in a text and people should be able to look at it.Actually, I have "no" idea where to start or what to do. Because I only know HTML, a little XML and AS. If someone could create something like that, it would be great because I could use it as a tutorial and learn some new stuff.
View 5 Replies
May 22, 2009
I have a flash game that asks the user to enter his username & password then he can start playing the game. After that the score gets saved to MySQL next to his username & password. The final step is to display his scores in the flash game. Everything works fine except for the last step which is calling back the scores from MySQL to the flash game.
I call the scores from MySQL using PHP file which sends the data to flash through XML. I can call the data from MySQL & display it in flash BUT I should enter a specific user name manually in the PHP file. The problem is that I can't make the flash game display the scores of the logged in user. for example: User A signs-in, plays the game, his/her score gets saved & then the problem occurs calling back his/her scores to the flash. In order to display User A scores in the Flash , I should replace the $username variable in the PHP file with "User A" so the scores can be displayed in the Flash file.
[Code]...
View 1 Replies