[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-31 Thread bennybobw
Thanks Todd and Aaron, Adding the .source attribute did the trick. Ben --- In flexcoders@yahoogroups.com, "twcrone70" <[EMAIL PROTECTED]> wrote: > > Ok, I guess so. I really didn't look close enough. I'm no PHP guy so > I might be overstepping. The only other thing I see that might be a > prob

[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-31 Thread twcrone70
Ok, I guess so. I really didn't look close enough. I'm no PHP guy so I might be overstepping. The only other thing I see that might be a problem is that the mxml specifies the 'source' property and the actionscript does not. But honestly all my RO's are AS and their endpoints are Java/Spring se

Re: [flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-31 Thread Aaron Miller
I'm not an expert on RemoteObject myself, but I do notice your code looks a bit different then mine (which works). Here is an example of a function that uses remote object in my project: # public function loadFavorites( resultHandler:Function, errorHandler:Function ): void { # var dataService:R

[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-31 Thread valdhor
I am a relative newbie myself but don't you need a views.source = "location of service on server"? --- In flexcoders@yahoogroups.com, "bennybobw" <[EMAIL PROTECTED]> wrote: > > Hi All, > I'm trying to get the following remoteObject working with > Actionscript. When I use the mxml it works great.

[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-31 Thread bennybobw
Todd, Sorry, I think I'm misunderstanding something very basic here. Aren't both mxml and RO calling the method views.getView("test", ['nid','title','body','changed'])? The method server side is views.getView("view name" (string), "fields" (array), "args" (array)). I've attached the code below. T

[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-30 Thread twcrone70
Method signature is my attempt to be language neutral when asking for the interface like in Java it might be: public List getSomething( int param, String param ); The getNodes() call does not matter. What matter is the RemoteObject method call. It appears to me that you are passing different pa

[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-30 Thread bennybobw
Todd, That's the part I dont understand. If I use either the mxml or the javascript, init() is calling getNodes() in both cases. It works when I use the mxml instead of the remoteObject declaration. That's why I am thinking it has something to do with my use of remoteObject. I'm not exactly su

[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-29 Thread twcrone70
Well at first glance it appears that you are passing parameters in the actionscript and not in the MXML so they are each looking for a different method on the server. When I get "no such method error" it is usually because I have specified the wrong parameters or in the wrong order. What is the s