ActionScript 3.0 :: Write And Read To / From A Mysql Db?
Jan 25, 2011I am building an interface in flash and want to know if I can write to and from a MySQL db.I am using php and mysql is this possible and what woud I use?
View 7 RepliesI am building an interface in flash and want to know if I can write to and from a MySQL db.I am using php and mysql is this possible and what woud I use?
View 7 RepliesI'm trying to read a XML file and output the values, but i'm getting a 1120: Access of undefined property URLRequest. error.
[Code]...
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.
I have like 2 weeks already trying and nothingSo what is my gaol?ABOUT.SWF=========1. I want to know how to read a xml file into a dynamic text field.exmaple: about_us.xml into txt_about.CMS_ABOUT.SWF==============2. I want to know how to read that same xml (about_us.xml) so i can edit it and save it.
View 3 RepliesOn load I want to read some attribute information including x, y coords for elements that will be positioned on the stage accordingly.
On moving elements to a new position I want the new coordinates to be written back to the XML file.
I understand AS can read the XML file OK but not write native. A php script is required to perform the write.
I am trying to send a php variable with one field from mysql. When I print the php variable on my php page it outputs the field, but when I try to send it to flash it doesn't output anything.Here is my php script that tries to send a mysql field to flash and there nothing is shown. It works on my php page, it outputs the mysql field.
$product=$result['product'];
$pro=$product;
$pro = "&pro=".$pro."&"; //~ make it a flashable variable
[code].....
I need to save and later read some info to and from a file... I know i can do that with PHP, but how could i do that WITHOUT PHP ?
View 3 RepliesI was wondering so long that how can people analyze the trait of each file extension (of course open it in notepad is not readable) For example, I want to write a program that can read everything from .fla file like timeline, movie clips, position of each MCs or all the motion tween values. And get the image embeded in it. (I'm planning to use flash as IDE for another project.)
(The reason that I tried to read proprietary format is I want to utilize their awesome editor. What I actually want to do is, I want to make an iOS game with cocos2d. There is a code to move things around in cocos2d but there is no decent editor. So I'd like to use Flash as an editor, then convert the motion to objective-C cocos2D code by reading the .fla file.)
I'm trying to save the contents of a XML file on a list, but I'm getting this error: 1084: Syntax error: expecting rightparen before colon. Note: I think Im missing an import stuff, but I tried flash.net.List and didnt do a thing.
[Code]...
Is it possible to read/write to the C: drive and it's directories with Adobe Air? if so how? I've only seen examples using the desktop or user directories with resolvePath().
View 1 Repliesi need to save and later read some info to and from a file... I know i can do that with PHP, but how could i do that WITHOUT PHP ?
View 13 Repliesim trying to read values from a mysql database into different textboxes but as at now all the textboxes are filled with the same thing which is the first item of the database. This is not what i want. What i want is for the text boxes to be filled with the different items of the database. Attached to this message is the php code i have and the actionscript code
phpcode $userName = "helena"; $password = "GODLOVESME"; $con = mysql_connect("localhost",$userName,$password); if (!$con) { echo "not connect"; die('Could not connect: ' . mysql_error()); } else { mysql_select_db("helena", $con); $result = mysql_query("SELECT * FROM messages "); $j= 0; $nRows = mysql_num_rows($result); $rString ="&n=".$nRows; for ($o=0; $o< 10;
[code]....
I currently have a flash video player and I want to add some code that will update a variable in an external .as or .txt file. I then want to be able to pull this variable into a different .swf when required.
My variable I want to create will be CurrentVideo and it needs to be a number e.g. _global.CurrentVideo = 2
I'm a bit of a newbie with flash and Actionscript. I have been programming for a number of years now, but I have only been messing around with flash since CS4. I have CS5 now, and need a bit of help. I have a wireless device that I have made, I wish to make a flash program (potentially adapted to iPhone or Android) that sends and receives data (in the form of Word or Byte sized variables) from an IP address assigned to the device. Is this achievable?
View 1 RepliesAnother Adobe AIR question for you: Can we write files to the file system and leave them as read-only in Adobe AIR? In the future, we would overwrite these files (or delete them and write a new one).
Update: I tried the following approach, but I was still able to open the file, edit, and save to the file system after the process executed.
[Code].....
Is it even possible to both read and write http headers in actionscript?
View 1 RepliesI want to make a registration page with Flex. The data will be stored to text file. Is it possible?
View 4 RepliesI want to write and read cache in flash via AS2. I have two flash/swf files placed at same location. From 1st file, on a button click event, I want to write some variables/ values one by one into cache. Then proceeding to 2nd swf placed in another html, I want to read those variables one bye one.
View 8 RepliesHow would I go about reading/writing variables to a file? I would like to be able to have my program remember all of its settings from the last run.
View 4 RepliesI want to make, read data from asp. How can I write this value?.
[Code]...
This swf works fine when its not in a google gadget.It will read and write xml as the user interacts wtih it. Why once its embeded inside a gadget will it only read xml? It will not send xml to my file on my server and write a new xml file.[code]...
View 1 RepliesIs it possible to zip/compress assets files into binary or .bin format through Actionscript or AIR? The compressed file will be in binary and can only be read by Actionscript which then parses the file.
Right now I am only able to read/write zip files using nochump's amazing library. I tried using AIR to write the bytes to disk and save it as filename.bin but I am still able to read filename.bin using 7-zip.
The objective is to protect my asset files as much as possible. Are there any other ways?
I have to make a drawing board and send that drawing to server after each 5 sec. Multiple user can see that drawing. So how to reflect that changes to every user system. How to send my bitmap data to server and and load that data to another user system. How to read and write bitmap data to server after each 5 sec.
Attachments: Drawing.zip (9.7 K)
I have two variables that I would like to store in a remote data file which can be accessed by my Flash file. It is for a voting system, so the first variable would be a counter that is incremented each time a user votes, and the second would be the total rating. The average rating would then be calculated from these.
How would one store, retrieve, and then update these variables from the data file?
I can create the system within a single Flash file for a single session, but obviously I'd like multiple users opening the file simultaneously to be able to access the data and update it.
I think it can only access the network but not local file system, but from internet some people said it can in the newest version, can anybody confirm? It can reach arbitrarily file or just a specific location?
View 2 RepliesI would like to create a database and read/write data via actionscript3. I'm an absolute beginner in this field, where do I have to start?
View 9 RepliesI would like to create a database and read/write data via actionscript3. I'm an absolute beginner in this field, where do I have to start?
View 4 RepliesI am creating a CBT course using Flash CS4 As3. I need to capture progress information from the user as they complete each unit in the course so that the next time they access the course they can pick up where they left off. To do this I need to know how to write and retrieve this information to and from a text file or a cookie so that it can be retrieved re-enters the course.
View 2 RepliesI am trying to create .txt file dynamically from a Flash projector exe on to the local system for a game, Wherein the score and the players name should be stored.I have tried using the Loadvariable POST method to no avail.
View 1 RepliesI'd like to read or write browser cookies, using a flash client.
Lets say, If I have a website with users... And they can play all sorts of movies (the client). I'd like to have a way to recognize the user. Maybe there's a different alternative?