ActionScript 2.0 :: Get Data From Mysql Database And Post To Movie Dynamically?
Dec 18, 2003is it possible to get data from mysql database and post it to a flash movie dynamically without refreshing browser?
View 6 Repliesis it possible to get data from mysql database and post it to a flash movie dynamically without refreshing browser?
View 6 Repliesis it possible to get data from mysql database and post it to a flash movie dynamically without refreshing browser?
View 6 RepliesI can't seem to post needed information to my database, here's what I've got:
[Code]...
So what is wrong? Why ain't it adding the information to my database?
Can anyone help me with getting a message that is said in flash (like a game) go to a mysql database?
View 2 RepliesI am reading one tutorial :- But I can't understand what is "Gateway.php" and all such things. I am a beginner in Flash.
View 2 RepliesI just went over the ZEND amf Tutorial and was wonder is there a way to send/post data to the database?
View 4 RepliesI'm making a login script and adding the data to my local mysql database using php.it works as long as I browse in my browser to localhost/ flash/ movie.swf but if I just open the folder and run the .swf file it doesnt work
View 2 RepliesI can get the data from the mysql database into the flash onDataLoad function but cant get it outside the function, and that is what i need to malipulate other data already in the project (update it)
var myLoader:URLLoader = new URLLoader() myLoader.dataFormat = URLLoaderDataFormat.VARIABLES myLoader.load(new URLRequest("http://localhost/flash_php_mysql/FormData.php?"))
[code].....
I have a quiz game that i have finish. in this game have a finish button. if the finish button clicked the score from the quiz want to insert into mysql database.
View 1 RepliesWhat 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.
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 RepliesI have managed to connect to my database in flash using php. I need to be able to add records to the database using a flash interface.
Here is my existing code:
Code:
stop();
Security.allowDomain("*", "localhost:8888");
var dives_xml_url:String = "http://localhost:8888/pembrokeshire_diving/generate_wrecks_xml.php";
[code]....
Obviously I will also need to add buttons and text fields to facilitate adding the data but I wanted to know if it was possible first.I am using PHP and MySQL with MAMP.
i have a sprite,this sprite function is to connect to mysql database and print data to the sprite..and now if i have a new data in my database.. and i want the sprite can automatically add a new sprite to print the new data.so if i add a new data.. in flash a new sprite can occur and print the new data.. and so on.
View 1 RepliesIs there a way to easily get data from mySQL database and display it in a dynamic text field?
View 5 RepliesI have a Flex application which manage a database composed by 7 tables.I have created the insert form and all work great. Now I wanto to improve the Form performances; the idea is to replace the TextInput of the Form with ComboBoxes which are provided by the DataBase tables
View 1 RepliesLooking to load data from a MySQL database into a Tile List component. Not sure where to start to be honest, I've got a set up just now to add data from the same database into a List component - should I just use the same code and change it accordingly?
Or is there a simpler, more effective manner of loading my required info (it is a title and an image (x4), which changes regularly, ie every week depending on the sort applied for the products)[code]...
I have a web page with a button that does a redirect to another web page with a flash movie in it. The button on the first page sends http post data as part of it's functionality.
View 1 RepliesCurrently I'm setting up a webservice, which includes a login to access the member area.I'm testing all components seperately, and I've ran into a problem. When the user logs in I want flash to retrieve the user_id as a variable, so that I can use this user_id for member related database access. However, I'm having problems with retrieving the user_id.The login is done by inputting the email and password of the user. If these variables match the data in the database the user is send to the member area. I want to get the user_id by posting the email variable to a php file. In the php file the following code is responsible for this:
PHP Code:
$email = mysql_real_escape_string($_POST["email"]);
how tp use databases with Flash CS4 ?I have created a form, an email page and a username/password protected pages, but I cannot find any tutorials that would help me how to connect to a database.
View 7 Replieshow different is actionscript 3 compared to actionscript 2 i mean to integrate a datebase using mySQL if so how?
View 1 RepliesI have a problem with saving the £ symbol to a mysql database.I am running a flex front end, with a php + mysql backend When I save a record from flex, the string gets sent to the server as "This amount is £10" php views the string as above, and when it gets saved into the DB, it gets saved as "This amount is £10".
My understanding is that this is correct based on MySQL or PHP is appending a whenever the £ is used I now retrieve the above record, and it gets sent to flex as "This amount is £10". Flex correctly displays this in a textarea as "This amount is £10" I change another field in the same record in flex, and re-save the transaction. The string now gets sent to the server as "This amount is £10" The record is now saved into the DB as "The amount is £10". Each time the record is re-saved, this effect snowballs.
So, we want to move out from Air (Adobe stopping support and really bad implementation for the sqlite api, among other things). I want to make 3 things:
Connect with a flash (not web) application to a local mysql database.
Connect with a falsh (not web) application to a remote mysql database.
Connect with a flash (web) application with a remote mysql database.
[Code]...
if you can connect with socket wit mysql server, why use a web server (for example with php) to connect like a inter connectioN? why not connnect directly? I have done this a lot of times, using AMFPHP for example, but wouldn't be faster going directly? In the case of accessing local machine, it will be a more simple deploy application that only require the flash application + mysql server, not need to also instal a web server.
I am accessing my MySQL database through Flash using AS3. I am using php scripts to access my database and send and receive variables. Everything is working fine. No problems there. The problem, or rather the question is, is it possible for flash to run a script to access a database without a webserver running on the machine? Isn't there some sort of plugin or adapter or interface class available in flash that will allow me to do that?
View 7 RepliesI have a database with info about each of my movies (filename, size, length, credits, etc) How would I load the variables for a particular movie from the database into the flash?
I did a search on the forum, but I wasnt sure excatlly to search for so I didn't find anything.
i am trying to connect php to a mysql database by doing the following: $con = mysql_connect("localhost:8080","username","passwor d"); when i try to run the php file in the browser it takes forever to load. What could be the problem? and what am i doing wrong. i created the database with mysql in xampp.
View 2 Repliessomething strange about loading database mysql with urlloader
[url]
when i compile and run it via flash it worked , i can load the data but when i embed that swf into website the data won't loaded . what's happened?
I am making an online game with AS2 and my method for storing the location of users is with a table with columns: name, x, y. The table has many rows.
I have a PHP script which makes a query in the DB for all x and y locations from -6x to +6x and -4y to +4y (Relative to the user).
If a user exists at that location, then they will be printed on a list that will end up looking something like this:
&username1=John&x1=16&y1=8&username2=Fred&x2=16&y2 =9
I want to know how to make a loop which takes the information printed from the PHP script and use some sort of efficient loop to take username1, username2, username3, etc. and place them at the x and y positions listed. I will use the "loadVariables" function to get the variables from the PHP script.
The main thing that confuses me is how I am to make a loop which manipulates the variable name. I am thinking of using OO with which I can do username(1), username(2), etc. but I am not familiar with actionscript so it would be difficult.
I also need to be able to place an object from my library to the screen and when I did a search, I could not find how to do this.
I have made the following script to search in a Mysql database. The script works fine the first time you search. Second time if you try to search for some thing else the old search result keep appearing. Is there some way that i can clear the search result when ever i initiate in a new search?
This is my script:
this.createEmptyMovieClip("myForm_europe", 0);
myForm_europe.newSearch = 1;
myForm_europe.searchType = 0;
myForm_europe.searchArea = 0;
[code]....
When you login you type in your username and password and gain access to course.Down the line you play games and take tests. Using URLVariables you post and update a mysql dbase thought a php script.HOWEVER, at the moment I am cheating - I am passing in the username through the game with the scores.The reason is that I don't know where to keep that username when I first logged on. It should be kept somewhere as some kind of global variable.Perhaps it is kept in the container movie when we first gain access to course.
View 8 Repliesi have been trying to execute a simple flash program that communicates with a php page which is linked to a mysql database. somehow the php is not returning any data to flash , and even falsh is not sending any data to php.. I am using wamp server on win7.
[Code].....