I am having problems with getting those two mentioned in subject to work.
The PHP class is good judging from the browser function of AMFPHP 2.0 (beta): it does what it should do.
However, I cannot get it to work inside Flex 3 app.
What should my RemoteObject look like, please?
The PHP class is: (...)/amfphp/services/myProject/myClass.php.
myClass.php contains this function:
function getAllData()
{
$sql="select * from table1";
$resource=mysql_query($sql);
while($row=mysql_fetch_object($resource))
{
$return[]=$row;
}
return($return);
}
So, what I don't know how to do is implement the remote object withing Flex 3.
Thank you! :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone!
I am having problems with getting those two mentioned in subject to work.
The PHP class is good judging from the browser function of AMFPHP 2.0 (beta): it does what it should do.
However, I cannot get it to work inside Flex 3 app.
What should my RemoteObject look like, please?
The PHP class is: (...)/amfphp/services/myProject/myClass.php.
myClass.php contains this function:
function getAllData()
{
$sql="select * from table1";
$resource=mysql_query($sql);
while($row=mysql_fetch_object($resource))
{
$return[]=$row;
}
return($return);
}
So, what I don't know how to do is implement the remote object withing Flex 3.
Thank you! :)
You can look at the implementation of as3flexdb how to make the connection between php and as3 in flex.
http://www.sephiroth.it/tutorials/flashPHP/as3flexdb/
Also for a simpler solution, you can look at http://wadearnold.com/blog/?p=16. This example is for flash, but it also works in flex.