You can hook up Flex 2 to AMF0-based remoting servers, but you need to 
specify that you use AMF0 with NetConnection.  I followed the AMF-PHP 
tutorial, and adapted my code accordingly:

http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html


Here is my little subclass:

public class RemotingService extends NetConnection
    {
        public function RemotingService( sURL:String )
        {
            objectEncoding = ObjectEncoding.AMF0;
            if (sURL) connect( sURL );
        }
    }



Also, not in the tutorial, but important if you want strongly typed 
objects returned, is the registerClassAlias call that should be invoked 
at some point before the remoting call is made.

registerClassAlias( "com.cloudsystems.as.atmos.model.Attribute", 
AttributeDTO );


Good luck,
-D


Pablo Ruggia wrote:
> So what version is implemented ? AMF0 ?
> Will AMF3 be implemented in a near future (I don't see it in the roadmap).
> Sorry for so much questions.
>
> On 12/1/06, * Stan Reshetnic* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi Pablo.
>
>     If I right understood red5 technology then thing that you want will be
>     available after AMF3 implementation. Without any hard code with
>     serialize/deserialize.
>
>     But I'm not sure :-).
>
>     On 12/1/06, Pablo Ruggia < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>     > Great. So where can I see some documentation about using Red5 to
>     do that ?
>     > Thanks !
>     >
>     >
>     > On 12/1/06, Dominick Accattato < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>     > > Hello Pablo,
>     > >
>     > > Any serverside call that sends a result to a client is esentially
>     > serializing java objects to amf.  This is done through
>     Serializer.java.  For
>     > instance a List in Java is serialized to an Array in the flash
>     client.  Is
>     > this the answer your looking for?
>     > >
>     > >
>     > >
>     > > On 11/30/06, Pablo Ruggia < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>     > > >
>     > > > Hi !!
>     > > >
>     > > > I want to serialize Java objects and send them via AMF to a
>     Flex client.
>     > > > I've tried hard to find a good tutorial on doing this. So I
>     have two
>     > questions:
>     > > > - Does RED5 can do what I want ?
>     > > > - Are there any documentation/example/blog on this topic ?
>     > > >
>     > > > Thanks !
>     > > >
>     > > > _______________________________________________
>     > > > Red5 mailing list
>     > > > [email protected] <mailto:[email protected]>
>     > > > http://osflash.org/mailman/listinfo/red5_osflash.org
>     > > >
>     > > >
>     > > >
>     > >
>     > >
>     > >
>     > > --
>     > > Dominick Accattato, CTO
>     > > New View Networks
>     > > www.newviewnetworks.com <http://www.newviewnetworks.com>
>     > > _______________________________________________
>     > > Red5 mailing list
>     > > [email protected] <mailto:[email protected]>
>     > > http://osflash.org/mailman/listinfo/red5_osflash.org
>     <http://osflash.org/mailman/listinfo/red5_osflash.org>
>     > >
>     > >
>     > >
>     >
>     >
>     > _______________________________________________
>     > Red5 mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://osflash.org/mailman/listinfo/red5_osflash.org
>     >
>     >
>     >
>
>
>     --
>
>     With best regards,
>     Stan Reshetnic,
>     FlashNinja
>     ICQ: 4534777
>     mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>     _______________________________________________
>     Red5 mailing list
>     [email protected] <mailto:[email protected]>
>     http://osflash.org/mailman/listinfo/red5_osflash.org
>     <http://osflash.org/mailman/listinfo/red5_osflash.org>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to