My bad. You need a Destination to send to on the server (The page
where the method resides that you are calling).
I wrote out an example that doesn't have any config files and no
compiler arguments...
var channelSet:ChannelSet = new ChannelSet();
var amfChannel:AMFChannel = new AMFChannel("my-amf",
"http://myserver.com/WebORB30/weborb.php");
channelSet.addChannel(amfChannel);
myService = new RemoteObject();
myService.channelSet = channelSet;
myService.destination = "MyClasses.MyService";
myService.getVariables.addEventListener(ResultEvent.RESULT,
VariablesHandler);
myService.addEventListener(FaultEvent.FAULT, faultHandler);
myService.getVariables();
This uses WebOrb for PHP. My class file with the getVariables method
resides in the file MyService.php which is in the directory MyClasses
in the Services directory of WebOrb.
--- In [email protected], "[p e r c e p t i c o n]"
<[EMAIL PROTECTED]> wrote:
>
> sorry but i get this...
>
> [MessagingError message='A destination name must be specified.']
>
> percy
>
> On Tue, Jul 22, 2008 at 3:00 PM, [p e r c e p t i c o n] <
> [EMAIL PROTECTED]> wrote:
>
> > you must be from the midwest :)
> >
> >
> > On Tue, Jul 22, 2008 at 11:42 AM, valdhor <[EMAIL PROTECTED]>
> > wrote:
> >
> >> I don't normally do it that way but yes, just set the source
and the
> >> endpoint and Bob's your auntie ;-}
> >>
> >>
> >> --- In [email protected] <flexcoders%40yahoogroups.com>,
"[p e r
> >> c e p t i c o n]"
> >> <percepticon@> wrote:
> >> >
> >> > it appears easier to do if FB3 than FB2...using remoteobject means
> >> you need
> >> > a destination...which is set in the config...is there a way to
specify a
> >> > destination without it being in a config...if so that would
work out for
> >> > me...
> >> >
> >> > thanks
> >> >
> >> > percy
> >> >
> >> > On Tue, Jul 22, 2008 at 8:53 AM, valdhor <stevedepp@> wrote:
> >> >
> >> > > Just add config files to the project and change your compiler
> >> settings
> >> > > to point to the config file(s)...
> >> > >
> >> > > or
> >> > >
> >> > > Create RemoteObject instances and explicitly set the properties.
> >> > >
> >> > > All that the setting does in the project wizard is add the
most used
> >> > > items (Like config files) to your project and setup the compiler
> >> > > settings for you.
> >> > >
> >> > > --- In [email protected]
<flexcoders%40yahoogroups.com><flexcoders%
> >> 40yahoogroups.com>,
> >> "[p e r
> >> > > c e p t i c o n]"
> >> > >
> >> > > <percepticon@> wrote:
> >> > > >
> >> > > > Hi all,
> >> > > > i started a project and at the time i didn't need a server,
but now
> >> > > i do.
> >> > > > is there a way to modify the settings to use a server after the
> >> fact?
> >> > > > thanks and
> >> > > > cheers
> >> > > > percy
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >>
> >>
> >>
> >
> >
>