Yep that did it, thanks for your help!
--- In [email protected], "Ryan Graham" <ryan.gra...@...> wrote:
>
>
> getInstance() should be a static method, so you don't need to use "new"
> when calling it:
>
>
>
> private var __locator:ServiceLocator = ServiceLocator.getInstance();
>
>
>
> HTH,
>
> Ryan
>
>
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of jeremysavoy
> Sent: Monday, December 29, 2008 10:39 AM
> To: [email protected]
> Subject: [flexcoders] Cairngorm ServiceLocator.getInstance(); compile
> error
>
>
>
> In one delegate I have the following:
>
> private var __locator:ServiceLocator = new ServiceLocator.getInstance();
>
> And it compiles just fine, and in fact this delegate and remoteobject
> service work as expected. I then add the same exact command to another
> identical delegate (other than names, generated using Cairngen), using
> the same import statement as below ...
>
> import com.adobe.cairngorm.business.ServiceLocator;
>
> But in the second delegate I get the following error...
>
> 1048: Method cannot be used as a constructor.
>
> If I remove the .getInstance() from the __locator instantiation, I get
> no error.
>
> I can not find any references to such an error anywhere, any help
> would be greatly appreciated.
>
>
>
>
>
> This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.
>