Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-30 Thread Martin Wood
Just knowing that the object is populated before the constructor is called and that those properties take precedence over my class explains a lot. Now I'm much better prepared to handle what remoting throws at me :) great... I think thats one part of remoting where they could have done

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-30 Thread Martin Wood
Just knowing that the object is populated before the constructor is called and that those properties take precedence over my class explains a lot. Now I'm much better prepared to handle what remoting throws at me :) Accidentally hit the wrong key combo and sent the previous mail before i was

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-30 Thread Julius Turnmire
I couldn't agree more :) We can always hope for such improvements in the near future. On Wed, 2006-08-30 at 11:18 +0200, Martin Wood wrote: Just knowing that the object is populated before the constructor is called and that those properties take precedence over my class explains a lot.

[Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Ok, I've got it working as advertised. I'm using VO's and my returned values are being mapped to my VO classes. But the problem is how they're mapped. I decided to work on getting VO's to work in my project in the hopes that all the string values I get from MySQL would be mapped to their proper

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread eka
Hello :) do you use Object.registerClass method to register your VO classes in ActionScript ? You can read in french my article about Class Mapping (AS2 and AS3) and fixing bug in AS3 in my blog : http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread Martin Wood
Unfortunately the player wont do data type conversion when deserializing the contents of an object returned via remoting. You have to make sure your types are right on the server so that when the remoting gateway constructs the amf data to send to flash it has the correct types already

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Yup, I do do registerClass. Wouldn't work without ;) I'll check out your article, but as far as I can tell everything is working it's just overwritting the variables in my class.. On Tue, 2006-08-29 at 18:07 +0200, eka wrote: Hello :) do you use Object.registerClass method to register your

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
On Tue, 2006-08-29 at 18:17 +0200, Martin Wood wrote: Unfortunately the player wont do data type conversion when deserializing the contents of an object returned via remoting. Bummer :( You have to make sure your types are right on the server so that when the remoting gateway constructs

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread eka
Hello :) class mapping it's very cool ... but i prefere use EDEN serialisation/deseiialization :) More information : http://live.burrrn.com/wiki/eden you can use this tool in Javascript, AS1, AS2, AS3, ASP, .NET etc... and if you can't use remoting you can continue to keep your datas in .txt

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Yes! That's exactly what's happening! So now I can do this in my VO class: class ExampleVO { result:Object; // datatype will depend on what server returns! aString:String; aNumber:Number; function ExampleVO() { processResult(); } private function

Re: [Flashcoders] AMFPHP 1.2 Class Mapping VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Very interesting! Thanks :) On Wed, 2006-08-30 at 01:12 +0200, eka wrote: Hello :) class mapping it's very cool ... but i prefere use EDEN serialisation/deseiialization :) More information : http://live.burrrn.com/wiki/eden you can use this tool in Javascript, AS1, AS2, AS3, ASP,