You have the actual ServiceLocator file in your folders, so open it up and
check and to see if the ServiceLocator code in the file is wrapped with an
outer package {} definition. If not then the files trying to import that
class won't find that class in the proper package.
For instance... in the app your building (or in the phones example app) you
might have a Services.mxml file in the business folder. The contents are:
----------------------------------------
<cairngorm:ServiceLocator
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="org.nevis.cairngorm.business.*">
<mx:HTTPService
id="dummyDelegate"
url="assets/dummy.xml"
result="event.call.resultHandler( event )"
fault="event.call.faultHandler( event )"
showBusyCursor="true"
useProxy="false" />
</cairngorm:ServiceLocator>
----------------------------------------
xmlns:cairngorm="org.nevis.cairngorm.business.*" says "look in
org.nevis.cairngorm.business for the ServiceLocator package."
Meanwhile, the beginning of you ServiceLocator.as file needs to read:
-----------------------------
package org.nevis.cairngorm.business {
import mx.core.UIComponent;
import mx.rpc.AbstractService;
import mx.rpc.http.HTTPService;
public class ServiceLocator extends UIComponent {
...
-----------------------------
so that the ServiceLocator class lives inside the
org.nevis.cairngorm.business package.
If your Services.mxml namespace is wrong it won't be able to find the
business package, and if the namespace is correct but the ServiceLocator
isn't IN the business package - wrapped with the package {} definition -
then the compiler will tell you it can't locate the ServiceLocator.
Make sense?
Darren
>From: "Kevin Roche" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.
>Date: Fri, 12 May 2006 19:00:02 +0100
>
>Benoit,
>
>That's what I did! I'm stuck now.
>
>Kevin
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
>Behalf Of Benoit Hediard
> Sent: 12 May 2006 14:58
> To: [email protected]
> Subject: RE: [flexcoders] Problem with Cairngorm 2 version of Phones
>app.
>
>
> You need to unzip all the files in the root folder of a new Flex Builder
>project and compile it.
> And it should work.
>
> Benoit Hediard
>
>
>
>----------------------------------------------------------------------------
>--
> De : [email protected] [mailto:[EMAIL PROTECTED] De
>la
>part de Kevin Roche
> Envoyé : vendredi 12 mai 2006 15:47
> À : [email protected]
> Objet : RE: [flexcoders] Problem with Cairngorm 2 version of Phones app.
>
>
> Yes, the file is there but I gues it may not be in the right place. I am
>assuming that placing the whole thing under the place where the mxml file
>is
>is correct or does it nee to be in some path so that flex can find it?
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
>Behalf Of Niklas Richardson
> Sent: 12 May 2006 11:59
> To: [email protected]
> Subject: Re: [flexcoders] Problem with Cairngorm 2 version of Phones
>app.
>
>
> Stupid question - the file exists?
>
>
>
> On 5/12/06, Kevin Roche <[EMAIL PROTECTED]> wrote:
> Hi Nik,
>
> I found the problem, needed to add all the mxml files to the
>application.
>
> Now I have another problem.
>
> Error message says:
>
> Unable to locate specified base class
>'org.nevis.cairngorm.business.ServiceLocator' for component class
>'ApplicationServices'
>
> I do have the cairngorm directory structure (org.. etc) in the same
>directory as main.mxml.
>
> Any ideas why its not found?
>
> Kevin
> -----Original Message-----
> From: [email protected]
>[mailto:[EMAIL PROTECTED] Behalf Of Niklas Richardson
> Sent: 12 May 2006 11:09
> To: [email protected]
> Subject: Re: [flexcoders] Problen with Cairngorm 2 version of
>Phones
>app.
>
>
> Hi Kevin,
>
> Good to see you on here.
>
> Could you post the line(s) in question? It might be that you need
>to do some
>
> Cheers
>
> Niklas
>
>
>
> On 5/12/06, Kevin Roche <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having difficult getting the Flex 2 Phones application
>working with
> Flex2 Beta 2 (Did not want to try Beta3 until it works)
>
> When I try to save and compile I get the following error:
>
> Implicit coercion of a value with static type 'Object' to a
>possibly
> unrelated type 'Array' Line 33 PhoneListGetCommand.as
>
> Anyone know why or what went wrong? I am still learning
>ActionScript and
> cant see quite what is wrong here.
>
> Kevin Roche
>
>
>
>
>
>
> ------------------------ Yahoo! Groups
>Sponsor --------------------~-->
> Protect your PC from spy ware with award winning anti spy
>technology. It's free.
> http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
>
>------------------------------------------------------------------
>--~->
>
> --
> Flexcoders Mailing List
> FAQ:
>http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
>http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
> --
> Niklas Richardson
> Prismix Ltd
>
> UK based Flex and ColdFusion Specialists
>
> --
> Flexcoders Mailing List
> FAQ:
>http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
>http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS Web site design development Computer software
>development Software design and development
> Macromedia flex Software development best practice
>
>
>------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
> a.. Visit your group "flexcoders" on the web.
>
> b.. To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>Service .
>
>
>------------------------------------------------------------------------
>
>
>
>
> --
> Niklas Richardson
> Prismix Ltd
>
> UK based Flex and ColdFusion Specialists
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
>http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS Web site design development Computer software
>development
>Software design and development
> Macromedia flex Software development best practice
>
>
>----------------------------------------------------------------------------
>--
> YAHOO! GROUPS LINKS
>
> a.. Visit your group "flexcoders" on the web.
>
> b.. To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>Service.
>
>
>----------------------------------------------------------------------------
>--
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/