ActionScript 2.0 :: Accessing MySQL Via Php
Feb 14, 2007
So I have a "blog" db setup on my server. I have the proper tables setup because you can test the entries by going here.url...You will see 3 different entries with text, date, time etc ..How I have a very very basic flash movie calling this data. It'll change when i complete the site, but at the moment I'm trying to make this work.url...With the following code, it's suppost to call and get the data from the most recent blog entry, and post it in the appropriate text box, along with date and time.Next it also calls previous entries, and posts it in the 'entries_txt' box.I know it's on the flash side of things because when accessing the .php file I can clearly see the entries, time and date. Well when exporting it out of flash, the only thing that shows is the most recent entry. No time, date, or previous posts. This happens 'online', and on my local machine. I get a "undefined" post because it can't find the blog.php file—which is expected.[code]This code is not my own, as I am/was following a tutorial. Any help would be greatly appreciated. I don't want to setup a blog for my client through a 3rd party because I want to keep the whole site flash-based, and don't want users to travel out of the site. I could also set this up just by calling dynamic text etc .. but I'm having fun learning to use MySQL and php.
View 1 Replies
Similar Posts:
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
Jan 13, 2010
I 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 Replies
May 25, 2010
I have downloaded MySQL JDBC driver from [URL]... How do I configure it?
View 1 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
Sep 15, 2009
i am good in php though, i am trying to make it so when the user presses a button, it updates a field by 1, i dont mind if it cant do it with text but if it just can do numbers at least then i can do an if echo statement. so far i have looked around and this is the best one i got (it is a poll but should give similar results)(i replace personal details with exactly 5 *'s): With this the table is called votesystem with fields vote1, vote2, vote3, vote4
[Code]...
View 3 Replies
Aug 10, 2009
i've done some simple apps to get the felling of it, nothing involving updating a file or a database.I wanted help, how to do a query to a MySql DB from a Flex application (thats gonna be running in a web server).I didn't saw any duplicated questions, sorry if any exists, just point me to it.
View 5 Replies
Feb 20, 2010
tutorials (e.g. ) show how to integrate Flash and MySQL. Also Flash can manipulate and sent this back to serverTo integrate flash and MySQL one can do the following:(1) MySQL -> php -> Flash (e.g. What is the most robust way to set up (1) and (2) to work at scale - as quickly as possible? What are the server loading implications? Is there any other way to do (1) and (2) more effectively?
View 2 Replies
Mar 8, 2011
I wanted to use flex line chart for displaying data stored in mysql table. Can anyone suggest me on how do I do this with flex as UI and mysql as db, I am not sure how to call .php file in flex to query from mysql. I wanted to show some data of time v/s temperature.I wrote a php file to query data from mysql, but my flex program is not able to connect to mysql, is there any configuration I need to update. I am using XAMPP
View 1 Replies
May 27, 2009
[code]I am not sure whether i am going correct, i am always getting the return value no though i enter the correct username and password.
View 7 Replies
Aug 7, 2005
I'm not shure if this goes in the ActionScript forum, but no one anwsered in the Flash MX 2004 forum. And seens this is 50% ActionScript and 50% PHP i thought i would post it here aswell. Here is the thread that i started in the MX 2004 forum
View 14 Replies
May 27, 2007
ok I have amfphp returning a query that is a Date data type in side of mysql. It is in this format "2007-27-5" which is a string. When making a date object in flash you need some thing like this
Code: var testDate:Date = new Date(2007, 4, 27); I would like to know if there is a short cut around this problem. As it would look now I need to take that string and have a regular expression pull the sub-strings ("2007", "5", "27") out and some how convert the sub-strings in to a numbers (2007, 5, 27), then set vars with the number latter sending it to that date constructor.
View 5 Replies
Sep 9, 2008
I'm running into a problem with a login and password screen through Flash. It connects to MySQL database to check if the username and pass are correct. Well, when I test it and click submit it just sits there and says in the status bar of the browser, URL...I believe that the PHP and MySQL part of this project are working correctly and just want to see if anybody notices anything wrong with the AS code calling for the PHP that's in the swf:[code]
View 2 Replies
Dec 14, 2003
I did this tutorial from this site: [URL]...
It tells me how I can let a flash movie check if people are registered.I was wondering how I could add a function where people can register, so their username + password is stored in the MySQL database (instead of static users that were inserted by me, I want people to be able to add their own username + password)
View 1 Replies
May 29, 2009
I need to create a scoreboard for my game. I want to be able to let my user submit the time it took to complete the game to my scoreboard. I have been able to purchase webspace with SQL, PHP. I have set up my SQL database. I have found a great tutorial about how to do precisely what I wanted on YouTube BUT after starting the tutorial I realised it was ActionScript 2, I REALLY need time type of tutorial but for ACTIONSCRIPT.
View 1 Replies
Dec 20, 2009
I've been working on a login for my AS3 website and I keep running into this issue where my novie gets stuck at "loading..." as you can see if you go to this websiteand try to create an account. I have a login.swf, a login.as, login.php, and newAccount.php all in the same directory folder. I've cleaned up some of the more obvious coding errors, but I'm a design guy thrown into a coding job... Errrr, not so fun. I'll post the contents of the files below , even though I'm pretty sure that's a no no...ogin.as
PHP Code:
package {
import fl.controls.Button;
[code]....
View 8 Replies
Apr 18, 2009
i am trying to fetch thousands of row from mysql though php.......
so is there any simple and fast method........i know other simple methods POST...but is there any other method which is faster??
View 3 Replies
May 20, 2009
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 Replies
Aug 7, 2009
Anyone has experience to display the last log date from the mysql database to the flash?
i did it with the username - that was displaying but not the last_log_date anyone can profide suggestion or an easier method/solution? sample script would be coolz.
[Code]...
i read the data in actionscript with username_name and then display the data into the textfield. this worked for the username only but not for the last log date..
View 1 Replies
Dec 30, 2009
how I connect with SQL or MySQL FMS3
View 1 Replies
Feb 18, 2010
how different is actionscript 3 compared to actionscript 2 i mean to integrate a datebase using mySQL if so how?
View 1 Replies
Oct 1, 2007
I like to call for different SWF files from a link in a MySQL database to use in a Detailpage with PHP. Photos and text are no problem. The AC code is probably complicating things.
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
May 13, 2011
I have to develop an iOS application able to read "news" by an existent mySql DB on my customer's web site.Is there a way to do this in AS3? I didn't wrote that DB, but I've got these informations:
Served Address; 33.222.1.000
DB: myDbName
User Login: brandon
Password: *******
I never used DBs in my personal works, then I don't know how to implement my code to communicate (read only) with my customer's web site database.
View 1 Replies
Apr 8, 2009
I've been asked by a client to build a vertical scrolling banner that pulls logos from a database and displays them in a line, scrolling through an infinite loop.I initially built it using a jquery script I found, but have discovered in the end that it won't actually do what I need it to.I know there are a million different scripts out there roughly covering what I'm after, but my PHP/Flash integration knowledge is pretty well non-existent.Here's what I've got using the jquery script. I need the flash one to display 6 banners at a time scrolling up, as opposed to the one.
View 1 Replies
Aug 1, 2009
I made an application using Flex,php,mysql. Now to give it to a client, I am bundling this flex application with xampp. There are few problems with this approach :
1. Whenever the flex application runs, an xampp window also opens up.
2. The Apache port number, which I am giving to the client is fixed. Same for mysql port number.
What could be a better alternative to overcome these?
View 2 Replies
Dec 3, 2009
Possible Duplicate: How to update a MySql DB using Flex
I want to connect flex with mysql
View 4 Replies
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
Apr 21, 2010
I want to make a script that will list online users when they enter a page.Simple way is record newly entered users into MySQL and list them for example every second.But I don't think it's a good idea with tons of users like in a facebook app come in and out of the page.There would be a way with Flash and PHP sockets but I really don't want to use Flash either.So is there any option left?
View 2 Replies
Jun 8, 2010
basically I have an admin flex page that allows the user to enter text into database. Then the frontend app will take the database entries and display them to the user. However there is no formatting. Do I need to insert html into the database then read that html again?For the user using the admin, they probably wont know html, so is there a simpler way to format?
View 1 Replies