Thanks, works great. Does anyone know why PHP dosnt use dot syntax? Always throws me when looking at the code.
Jim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Mineault Sent: 23 February 2006 16:18 To: Open Source Flash Mailing List Subject: Re: [osflash] AMFPHP Passing an object & accessing properties Flash objects are by default passed to associative arrays in PHP. So use: $objNew['description'] Instead of $objNew->description What Aral is describing is another thing that's going to be in AMFPHP 1.2. Patrick Jim Tann wrote: >Hi all, > >I am using amfphp and getting along well with it, I am sending and >recieveing data & my functions seem to be working correctly. Only thing >is I am not a PHP man & not having dot syntax is confusing me. > >Where I am having trouble is passing in an object as an argument so from >flash I am passing: > >Service.method({id:1, description:"hello world"}); > >And in the PHP I am calling this function: > > >function method ($objNew){ > NetDebug::trace($objNew); > NetDebug::trace($objNew->description); >} > >On receiving the data I can write the object out to the netconnection >debugger window but I CANT ACCESS THE PROPERTIES! > >Can anyone help me please. > >Jim > >_______________________________________________ >osflash mailing list >[email protected] >http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
