Aug
01
2008
Mysql to Flash via AMFPHP
Hopefully you’ve had a chance to read my other postings on AMFPHP and the classes and wrappers I’ve written for it. This post will be an example on how to query a mysql database from php and pass it into flash, then parse it into a multi-dimensional associative array (a big array that gives you the ability to loop through its records by number, and access its columns by name – similar to PHP’s mysql_fetch_assoc() ). First, if you are unfamiliar with my other postings, you can view them below:
Popularity: 42% [?]
Apr
15
2008
This is a quick post to let everyone know minor updates have been made to the amfphp communication class. Thanks to the help of Joshua Logsdon I have been able to make several changes that either fixed bugs or added to the quality of the class. One very useful function is the assocResult function that turns the received object from amfphp into an associative array, which can be much easier to work with sometimes than an object.
The new file is available for download: AS3 AMFPHP Class and Wrapper
Older articles can be accessed:
AMFPHP AS3 Class – Communication between Flash and AMFPHP made easy
AMFPHP AS3 Class and Wrapper – Communication between Flash and AMFPHP made even easier
AMFPHP AS3 Class and Wrapper – MySQL Query Example
Let me know what you think of the updates, and the additions from Joshua.
Popularity: 43% [?]
Apr
12
2008
After getting some positive response to my last project, I decided to spend some time, fix a few bugs and give you guys a new, cleaner amfphp class… but wait, thats not all, I even through in a free amfphp WRAPPER, ABSOLUTELY FREE! (right… well the entire site is free, but still, that makes me a nice guy, right?)
Anyhow, here is the class for those who’d just like to download and tinker: AS3 AMFPHP Class and Wrapper Continue Reading »
Popularity: 92% [?]
Mar
14
2008
- This article and the code it contains have been updated! Please check out the latest information: AMFPHP MADE EVEN EASIER!
- Download the latest files from here
Let’s face it, no complex flash project can exist without any connection to either server scripts or SQL databases. With the advent of AMFPHP, the Flash community has seen a rise in accessibility and ease of development when it comes to complex data transfer and manipulation between Flash and PHP. However, in AS3, its reliance on two infrequently used packages, NetConnection and Responder, can create problems for both the newly inducted and experienced programmers alike. My own frustrations with employing an easy to read interface between flash and AMFPHP have lead to the creation of a class that simplifies AMFPHP calls into one line (handling the actual server responses will obviously take more code). Here is an introduction to the package attached to this page for download here. Continue Reading »
Popularity: 42% [?]