use getRemoteObject if you're service is a RemoteObject. _locator.getRemoteObject("roService");
if it was an HTTPService or a WebService then you would use either _locator.getHTTPService("httpService"); _locator.getWebService("webService"); respectively. getService() is still around and returns AbstractWebService - its just not the "preferred" usage. --- In flexcoders@yahoogroups.com, dnk <d.k.emailli...@...> wrote: > > Warning: > Id 3604: You should now use one of the strongly typed methods for > returning a service. > > What to Type it as? I thought remoteObject, but the compiler complains > with: > > Id 1118: Implicit coercion of a value with static type > mx.rpc:AbstractService to a possibly unrelated type > > var service = __locator.getService("roService"); > > > roService refers to a RemoteObject. And __locator is a ServiceLocator > > And when i change it to: > > var service: AbstractService = __locator.getService("roService"); > > I still get the same warning. > > The code works, but I just want to be sure t do it all right. > > > d >