I'm still having real trouble with his, it's really confusing. I am returning
the VO from PHP via WebORB, and in Flex I have a VO class with the following
at the top:

[RemoteClass(alias="SiteVO")]

However, the result I am getting from WebOrb is still typed as "Object", and
it won't let me type it as "SiteVO". 

Can anyone offer any help as to how I type my objects correct?


Amy-28 wrote:
> 
> --- In flexcoders@yahoogroups.com, Sceneshift <j...@...> wrote:
>>
>> 
>> Hey guys,
>> 
>> I'm a little confused over how to get myself from WebOrb PHP into a 
> VO in my
>> Flex application. I am getting my result sent to me from my php 
> script which
>> is returned as an object, and I'm trying to set this result as a 
> value
>> object like so:
>> 
>> var testVO:TestVO = e.result as TestVO;
>> 
>> This isn't working, which confuses me. Do I have to run through 
> each result
>> in order to type it accordingly? I thought one of the benefits of 
> remoting
>> was that we didn't need to type our results?
> 
> You shouldn't have to cast it--it should come back already as that 
> type.  If it isn't already that type, check out these links:
> http://flexdiary.blogspot.com/2008/11/thoughts-on-remoting.html
> http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-
> posted.html
> 
> The latter link includes both the php and Flex side of a working 
> remote class.
> 
> HTH;
> 
> Amy
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PHP-Remoting-and-value-objects-tp21674002p21713717.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to