Hello, great question, unitil now I figure out that in order to use
object in Flex you need to have define and include Action Script
class. This class should be imported (like import org.zgflex.User;
-  here I imported class user imported inside Script part ) and
structural equal to class you define in php. That s how much I know,
now this is how I think what happend next.

You have to define remote object. This object  must have id, this is
source (starting point of channel)  and destination of "communication
channel", inside of this object you must define <metod> and
coresponding function. This function will be used for proccessing
answer from this channel.  When you want to communicate to php service
you do that by using something like this

<mx:Button x="10" y="131" label="Connect to AMFPHP" width="166"
click="c.communicationTest.send()"/>
click event is important here and it say like **** for communication
use FlexAMFPHPService, invoke php service called communicationTest /
this is php define function / and last part is send if you need some
variables from Flex to php script.

After PHP reply to request, it will "try to pass object define in
class.php you created earlier", for this it is neccecary to have
identical classes in AS and PHP.

I hope that some one here will be able to check this answer and
explain what happend next.

....




On Oct 10, 9:57 pm, Shreyas <[email protected]> wrote:
> Hi,
>
> I have been successful in getting amfphp to return PHP objects, the
> question now is how can I make Flex aware of the objects?
>
> I am invoking a remote object and the objects are returned as a
> result. Can they be used directly or should I use XML?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to