I am trying to add a new hello world service to amfphp, I am developing locally
<?php
/**
* First tutorial class
*/
class HelloWorld {
/**
* first simple method
* @returns a string saying 'Hello World!'
*/
function sayHello()
{
return "Hello World!";
}
}
?>
when exploring in the amfphp browser i ge...
I'm working on a project that currently has zero users but we would like to scale up to potentially hundreds. Currently we are running on a MySQL database with AMFPHP interacting with Flex. We used Flex because of its robust graphic features (important to this project) and because the initial developer (not me) already knew ActionScrip...
I've got an application that just shipped. Since I wrote it, I've learned about amfphp and propel. Both would be 'nice' to be used in the application but I can't say that it would be required at this point.
What types of things do you consider before you refactor code?
G-Man
...
All,
I've starting experimenting with amfphp. I've gone through a few great tutorials (particularly those by Lee Brimlow at gotoandlearn.com).
As long as you're using AS3, it works great, since AS3 includes the built-in NetConnection class.
However, I'm looking to use amfphp on a bunch of existing AS2 projects.
The problem is that AS...
I need a solution to read raw binary from any filetype stored on a server.
I heard of AMFPHP but initially got put off since I believed it required admin-access to install the service on the server.
Can I use it to read binary files? Any solution to this would be greatly accepted.
(No, I tried binary in XML CDATA sections but there ar...
What libraries or sample code will show me how to invoke Drupal services over AMFPHP from ActionScript? Ideally, they should be compatible with Flash, not just Flex.
...
What is the best method for communication between Flex and PHP?
In the past, we used AMFPHP with AS2, and it worked great for the most part (advantage of AMFPHP is that it also has a JSON mode that can let you seamlessly use the same remote PHP with either Javascript or Actionscript frontends).
However, it seems like AMFPHP isn't real...
Hi,
I have tried to use ZendSession class with AMFPHP, but AMFPHP uses raw PHP sessions in some of its functions and methods. I strongly need to manage all session variables by ZendSession. Is there any smart method to get it, instead of hack and modify original AMFPHP code?
...
Here's what I'm trying to do ...
Im using Flash to call an AMFPHP service that queries my database and returns the result resource. Before returning the result to the Flash movie I need to edit some of the values in the result resource.
How can i iterate through the rows of the result, change some values and 'repackage' the resource t...
How can I iterate through a mysql result before AMFPHP passes the data to Flash?
When Flash calls the service the following code gets the data
$sql = sprintf("SELECT file_type, file_name ..
$result = mysql_query($sql);
return $result;
Then I assume AMFPHP processes this result resource.
For each file_name retrieved I need to run a ...
I am a newbie to Flex 3 and Flash remoting and I can't decide which technique to use for frontend/backend communication.
I started of with XML, but it seems overhead to construct all XMLs in PHP, parse them in Flex, and for sending back data constructing again XMLs in Flex and then parsing them in PHP.
That's why I found AMFPHP, which ...
This is how it is. I am getting XML data, I need to wait until it is parsed and then dispatch the event once the parsing is done from my library.
Firstly is there any way to avoid events in library in this case?
An alternative I saw was to use VOs. So what is this and how to make it work.
...
Hi,
Im loading images into Flash and using JPGEncoder to encode the image to a ByteArray and send this to AMF PHP which writes out the bytearray to a file. This all appears to work correctly and I can download the resulting file in Photoshop CS4 absolutely fine. When i try to open it from the desktop or open it back in Flash it doesnt w...
Hi,
Im loading images into Flash and using JPGEncoder to encode the image to a ByteArray and send this to AMF PHP which writes out the bytearray to a file. This all appears to work correctly and I can download the resulting file in Photoshop CS4 absolutely fine. When i try to open it from the desktop or open it back in Flash it doesnt w...
So to sketch out our situation
We have a html page(domain: hyves.nl) with an iframe
in that iframe we load a php file (domain : atik.nl)
in that php file we start a session
and we embed our swf file (domain : atik.nl )
in our swf file we access a special page "calls.php" (domain: atik.nl)
where we can get some special data. (that's ...
Hello, hopefully someone can help me with this headache I have.
I'm currently running Drupal 6 and am trying to integrate AMFPHP so I can do some stuff with Adobe Flex.
Anyway, I downloaded the AMPHP module and the other required modules.
I go to my domain/admin/build/services and see the following expected data:
Servers
* AMFPHP -...
Does anybody experienced this kind of fault.
So i have some kind of imageuploader.
It fetches an image, grabs the bitmap data from it. convert that with a jpgencoder to a bytearray, send that bytearray to a server with amfphp and in php save that as a jpg on the server.
So this works great in FF, Chrome, Safari, Opera ( Mac & Windows ...
Is one 'better' than the other?
Doubt that since as I understand both are written by the same author, only Adobe 'officially' supports Zend.
My application is composed of 3 parts
1-an image editing tool allowing users to upload images, edit them, then post them to a server.
2-a publicly viewable gallery
3-a private 'admin' tool allowing...
There seems to be so many ways of uploading images to a PHP enabled server, it is difficult to make sense of the various options and under what circumstances it is prefereable to use one over the other.
On the front end you have the option to JPGencode or not, use a ByteArray or not, further compress the ByteArray or not.
On the server s...