Menu

Flex 3 and AMFPHP

Developers
JJtheClown
2009-01-11
2013-01-04
  • JJtheClown

    JJtheClown - 2009-01-11

    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! :)

     
    • mister  t

      mister t - 2009-01-14

      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/

       
    • mister  t

      mister t - 2009-01-14

      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.

       

Log in to post a comment.

MongoDB Logo MongoDB