[flexcoders] Re: Flex AMFPHP and VOs
Stefan, The RemoteObjectAMF0 source and sample code have just been updated to reflect the latest Cairngorm, which you can get off the labs.adobe.com site. Have fun, Renaun --- In flexcoders@yahoogroups.com, "Stefan Schmalhaus" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Renaun Erickson" wrote: > > > > I have updated the RemoteObjectAMF0 examples to demonstrate it working > > with out the error. > > Thank you very much. I successfully tested your example. Just two things: > > 1. Since you use the old "org.nevis" namespace for the Cairngorm > package I assume this is an older Cairngorm version. I tried to > replace your Cairngorm package with the current "com.adobe" Cairngorm > implementation but then your example stopped working (although I added > "getRPCService()" to the Cairngorm ServiceLocator). > > 2. Another thing that confused me was the fact that the VOs reside in > two different places: > > org.nevis.cairngorm.samples.login.vo.LoginVO.as > com.renaun.samples.vo.BookVO.as > > I guess these are typical complaints from a newbie. ;-) So no offense > here. I'm grateful that you share your knowledge with us! > > Stefan > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Yes, this was original a beta package. I will change everything over to work with the latest release Cairngorm2 and make the sample more logical in how it is organized. Renaun --- In flexcoders@yahoogroups.com, "Stefan Schmalhaus" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Renaun Erickson" wrote: > > > > I have updated the RemoteObjectAMF0 examples to demonstrate it working > > with out the error. > > Thank you very much. I successfully tested your example. Just two things: > > 1. Since you use the old "org.nevis" namespace for the Cairngorm > package I assume this is an older Cairngorm version. I tried to > replace your Cairngorm package with the current "com.adobe" Cairngorm > implementation but then your example stopped working (although I added > "getRPCService()" to the Cairngorm ServiceLocator). > > 2. Another thing that confused me was the fact that the VOs reside in > two different places: > > org.nevis.cairngorm.samples.login.vo.LoginVO.as > com.renaun.samples.vo.BookVO.as > > I guess these are typical complaints from a newbie. ;-) So no offense > here. I'm grateful that you share your knowledge with us! > > Stefan > Yahoo! Groups Sponsor ~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Never mind. I finally got it working. It was a mapping issue. I was using wrong settings for $gateway->setBaseCustomMappingsPath() and $incoming(). -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
Stefan, make sure you've mapped correctly the base class path in advancedsettings.php. Also, I don't know what Andi's version are you using, but I recommend this one it works perfect (get the source here).See you,Oriol.2006/7/26, Stefan Schmalhaus < [EMAIL PROTECTED]>:BTW: It works if I send the "username" and "password" as single strings. So I must be doing something wrong with the typed object(LoginVO) on the PHP side.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Flex AMFPHP and VOs
BTW: It works if I send the "username" and "password" as single strings. So I must be doing something wrong with the typed object (LoginVO) on the PHP side. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
--- In flexcoders@yahoogroups.com, Andrea Varga <[EMAIL PROTECTED]> wrote: > > That works too > http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html > (view source enabled) Hi Andrea, There are some typos in your PHP files ("con.spindevelopment" instead of "com.spindevelopment", "spindevelipment" instead of "spindevelopment", etc.). After correcting the typos, I got your example working but only in one direction (PHP -> Flex). I am able to retrieve the UserVOs but I can't send the LoginVO from Flex to PHP. The properties $pLogin->username and $pLogin->password are empty. Any ideas? Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
--- In flexcoders@yahoogroups.com, "Renaun Erickson" <[EMAIL PROTECTED]> wrote: > > I have updated the RemoteObjectAMF0 examples to demonstrate it working > with out the error. Thank you very much. I successfully tested your example. Just two things: 1. Since you use the old "org.nevis" namespace for the Cairngorm package I assume this is an older Cairngorm version. I tried to replace your Cairngorm package with the current "com.adobe" Cairngorm implementation but then your example stopped working (although I added "getRPCService()" to the Cairngorm ServiceLocator). 2. Another thing that confused me was the fact that the VOs reside in two different places: org.nevis.cairngorm.samples.login.vo.LoginVO.as com.renaun.samples.vo.BookVO.as I guess these are typical complaints from a newbie. ;-) So no offense here. I'm grateful that you share your knowledge with us! Stefan Yahoo! Groups Sponsor ~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Yes, I have my examples working locally with PHP 5.1.1 and on my renaun.com server under PHP 4.3.x. You'll have to change the BookVO.php file to use "var" instead of "public". You can read my post about it on my blog at http://renaun.com/blog/2006/07/25/70/. Renaun --- In flexcoders@yahoogroups.com, "Stefan Schmalhaus" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, Andrea Varga wrote: > > > > That works too > > http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html > > (view source enabled) > > Does it work with PHP4? > > Stefan > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
Unfortunalelly there are no links to send yet. I'm just in the learning process and I was just playing around with Flex and Cairngorm. I'm pretty new to both of them. I'm working usually with Flash and AMFPHP, so the first thing I wanted to do is to see how Flex with AMFPHP is working together. FDS is too much for me yet. I'll let you know when I have something to show. Andi Renaun Erickson wrote: >Andi, > >The Cairngorm 2 that is packaged in it was from their second 2 >release, and I had to add the getRPCService myself also. I need to go >back and include just the SWC or have people download it separate. > >As for the AbstractService and namespace usage, it is a more cleaner >approach and I'll incorporate it. To tell you the truth haven't had >much time to use the RemoteObjectAMF0, it was a class I wrote months >ago back in beta and things where not solidified back then. Again >thanks for all the updates and I'll incorporate them into the source, > >Please pass along any examples of the usage of the RemoteObjectAMF0, I >am interested in how it is being used. > >Renaun > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
I think it should. Stefan Schmalhaus wrote: >--- In flexcoders@yahoogroups.com, Andrea Varga <[EMAIL PROTECTED]> wrote: > > >>That works too >>http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html >>(view source enabled) >> >> > >Does it work with PHP4? > >Stefan > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
--- In flexcoders@yahoogroups.com, Andrea Varga <[EMAIL PROTECTED]> wrote: > > That works too > http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html > (view source enabled) Does it work with PHP4? Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Andi, The Cairngorm 2 that is packaged in it was from their second 2 release, and I had to add the getRPCService myself also. I need to go back and include just the SWC or have people download it separate. As for the AbstractService and namespace usage, it is a more cleaner approach and I'll incorporate it. To tell you the truth haven't had much time to use the RemoteObjectAMF0, it was a class I wrote months ago back in beta and things where not solidified back then. Again thanks for all the updates and I'll incorporate them into the source, Please pass along any examples of the usage of the RemoteObjectAMF0, I am interested in how it is being used. Renaun --- In flexcoders@yahoogroups.com, Andrea Varga <[EMAIL PROTECTED]> wrote: > > Hi > > > You're right, it works perfect! Sorry about the other comment. > > I'm kinda surprised and happy, is this the same that you sent to me? > > Thanks Oriol. Yes, the code is exactly the same, I have just added that > Label to show you that the casting works. > > > > > Also, it would be great to know what differences are between yours and > > Renaun's, because one's working and the other not (at least for me). > > What changes have you done? > > I think the main idea is the same. Although, I don't know if he is > using the advanceddsettings.php or not (it's not in the source), I > couldn't make it work without setting the $outgoing array. > > As we are here, Renaun, I'd like to make an observation on the > RemoteObjectAMF0? > First of all, I would be dead without it, it's grate stuff. Many thanks > for sharing. > I had to change it a little bit, because in the way it was, it's not > perfectly compatible with Cairngorm, you have to change the > ServiceLocator.as, and add the getRPCService() method. That's because > ServiceLocator's getService() returns an AbstractService but > RemoteObjectAMF0 inherits Proxy. That's why I made RemoteObjectAMF0 to > inherit from AbstractService (which inherits Proxy) and I had to add > this line too, to get rid of some errors: > > use namespace flash_proxy; > > This way no Cairgorm code needs to be changed. > I thought you might be interested in this. Or is there a good reason why > you haven't used it in this way, and I'm missing something? > > Andi > Yahoo! Groups Sponsor ~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
Hi > You're right, it works perfect! Sorry about the other comment. > I'm kinda surprised and happy, is this the same that you sent to me? Thanks Oriol. Yes, the code is exactly the same, I have just added that Label to show you that the casting works. > > Also, it would be great to know what differences are between yours and > Renaun's, because one's working and the other not (at least for me). > What changes have you done? I think the main idea is the same. Although, I don't know if he is using the advanceddsettings.php or not (it's not in the source), I couldn't make it work without setting the $outgoing array. As we are here, Renaun, I'd like to make an observation on the RemoteObjectAMF0? First of all, I would be dead without it, it's grate stuff. Many thanks for sharing. I had to change it a little bit, because in the way it was, it's not perfectly compatible with Cairngorm, you have to change the ServiceLocator.as, and add the getRPCService() method. That's because ServiceLocator's getService() returns an AbstractService but RemoteObjectAMF0 inherits Proxy. That's why I made RemoteObjectAMF0 to inherit from AbstractService (which inherits Proxy) and I had to add this line too, to get rid of some errors: use namespace flash_proxy; This way no Cairgorm code needs to be changed. I thought you might be interested in this. Or is there a good reason why you haven't used it in this way, and I'm missing something? Andi Yahoo! Groups Sponsor ~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
I have updated the RemoteObjectAMF0 examples to demonstrate it working with out the error. The problem was that I was using the old "registerClass" method instead of the proper "[RemoteClass(alias="com.renaun.samples.vo.BookVO")]" in the BookVO.as. You can get the updated source off my blog. And a big thanks to Andi for that code tip. Renaun --- In flexcoders@yahoogroups.com, "Oriol Gual" <[EMAIL PROTECTED]> wrote: > > First of all, I'd like to thank you all. > > I tried Renaun's example, and with ServiceCapture, it is returning an array > of BookVO. At this point everything seems OK. > > But when you receive this array, if you do something like this: > > var testBook : BookVO = new BookVO; > testBook = BookVO(ModelLocator.getInstance().books[0]); > > It will fail, because the objects inside the array collection aren't > BookVO's, they are Objects: > TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] > com.renaun.samples.vo.BookVO. > > And the same happens with your example Andi. > > Then, my question is, can anyone do this without the coercion error, and, > without extra functions to map it? > > Thanks, Oriol. > > 2006/7/25, Renaun Erickson <[EMAIL PROTECTED]>: > > > > I have updated the RemoteObjectAMF0 with samples of how to do the > > AMFPHP and VO's. > > > > Example Using Cairngorm: > > > > http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html > > > > Example With Out Using Cairngorm: > > > > http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html > > > > You can find the source here: > > http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/ > > > > Thanks Robert for the partial code. > > > > Renaun > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > Yahoo! Groups Sponsor ~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
Hi Andi,You're right, it works perfect! Sorry about the other comment.I'm kinda surprised and happy, is this the same that you sent to me?Also, it would be great to know what differences are between yours and Renaun's, because one's working and the other not (at least for me). What changes have you done? Later I'll test it at home and see if it works (I hope so hehe).Well, I just want to thank you Andi, great work!Oriol.PD: thekluito, the best thing is to view the last example by Andi, there you can download the example and test it, you'll only have to change some paths at ApplicationSettings.as and on gateway.php.PD2: thkluito, si quieres puedes enviarme un mail directamente a mi por si necesitas ayuda en algo en concreto. :D2006/7/25, Andrea Varga < [EMAIL PROTECTED]>:That works too http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html(view source enabled)AndiOriol Gual wrote: > First of all, I'd like to thank you all.>> I tried Renaun's example, and with ServiceCapture, it is returning an> array of BookVO. At this point everything seems OK.>> But when you receive this array, if you do something like this: >> var testBook : BookVO = new BookVO;> testBook = BookVO(ModelLocator.getInstance().books[0]);>> It will fail, because the objects inside the array collection aren't> BookVO's , they are Objects: > TypeError: Error #1034: Type Coercion failed: cannot convert> [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO.>> And the same happens with your example Andi.>> Then, my question is, can anyone do this without the coercion error, > and, without extra functions to map it?>> Thanks, Oriol. Yahoo! Groups Sponsor ~-->See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM~->-- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Flex AMFPHP and VOs
That works too http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html (view source enabled) Andi Oriol Gual wrote: > First of all, I'd like to thank you all. > > I tried Renaun's example, and with ServiceCapture, it is returning an > array of BookVO. At this point everything seems OK. > > But when you receive this array, if you do something like this: > > var testBook : BookVO = new BookVO; > testBook = BookVO(ModelLocator.getInstance().books[0]); > > It will fail, because the objects inside the array collection aren't > BookVO's , they are Objects: > TypeError: Error #1034: Type Coercion failed: cannot convert > [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO. > > And the same happens with your example Andi. > > Then, my question is, can anyone do this without the coercion error, > and, without extra functions to map it? > > Thanks, Oriol. Yahoo! Groups Sponsor ~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Hello Oriol, I've found this thread looking for some elegant way to interact amfphp with cairngorm. For what i've read, did you have a php class with the structure of you AS VO? Are you returning an array containing the bookvo info or an bookvo object?. If i'm wrong or this is not your case, please correct me. --- In flexcoders@yahoogroups.com, "Oriol Gual" <[EMAIL PROTECTED]> wrote: > > First of all, I'd like to thank you all. > > I tried Renaun's example, and with ServiceCapture, it is returning an array > of BookVO. At this point everything seems OK. > > But when you receive this array, if you do something like this: > > var testBook : BookVO = new BookVO; > testBook = BookVO(ModelLocator.getInstance().books[0]); > > It will fail, because the objects inside the array collection aren't > BookVO's, they are Objects: > TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] > com.renaun.samples.vo.BookVO. > > And the same happens with your example Andi. > > Then, my question is, can anyone do this without the coercion error, and, > without extra functions to map it? > > Thanks, Oriol. > > 2006/7/25, Renaun Erickson <[EMAIL PROTECTED]>: > > > > I have updated the RemoteObjectAMF0 with samples of how to do the > > AMFPHP and VO's. > > > > Example Using Cairngorm: > > > > http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html > > > > Example With Out Using Cairngorm: > > > > http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html > > > > You can find the source here: > > http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/ > > > > Thanks Robert for the partial code. > > > > Renaun > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > Yahoo! Groups Sponsor ~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
First of all, I'd like to thank you all.I tried Renaun's example, and with ServiceCapture, it is returning an array of BookVO. At this point everything seems OK.But when you receive this array, if you do something like this: var testBook : BookVO = new BookVO;testBook = BookVO(ModelLocator.getInstance().books[0]);It will fail, because the objects inside the array collection aren't BookVO's , they are Objects:TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO.And the same happens with your example Andi. Then, my question is, can anyone do this without the coercion error, and, without extra functions to map it?Thanks, Oriol.2006/7/25, Renaun Erickson < [EMAIL PROTECTED]>:I have updated the RemoteObjectAMF0 with samples of how to do the AMFPHP and VO's.Example Using Cairngorm:http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html Example With Out Using Cairngorm:http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html You can find the source here:http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/Thanks Robert for the partial code. Renaun Yahoo! Groups Sponsor ~-->Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM~->--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Flex AMFPHP and VOs
I have updated the RemoteObjectAMF0 with samples of how to do the AMFPHP and VO's. Example Using Cairngorm: http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html Example With Out Using Cairngorm: http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html You can find the source here: http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/ Thanks Robert for the partial code. Renaun Yahoo! Groups Sponsor ~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex AMFPHP and VOs
Oriol uploaded it "http://www.snokin.com/flex/ClassMappingExample.zip">here. Stefan Schmalhaus wrote: I just sent a private mail to you with the code. I'm also interested in your code sample. Would you mind sharing your code here on the list? If it's too much code please send me an email, too. Thanks in advance. Stefan Schmalhaus [EMAIL PROTECTED] Yahoo! Groups Sponsor ~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Andrea Varga Managing Partner / Project Manager Certified Macromedia Flash MX 2004 Developer -- Spin Development Srl Tel: +44 207 043 1304 Fax: +44 207 681 1376 Skype ID: vargaandrea Mon-Fri : 8 AM - 5 PM GMT+2 Saturday: 8 AM - 4 PM GMT+2 (Support only) -- __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Flex AMFPHP and VOs
> I just sent a private mail to you with the code. I'm also interested in your code sample. Would you mind sharing your code here on the list? If it's too much code please send me an email, too. Thanks in advance. Stefan Schmalhaus [EMAIL PROTECTED] Yahoo! Groups Sponsor ~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/