Not sure what to tell you Graham. I remember having a little trouble with this too. The code below works for me. Just make sure all of your paths are correct. Also, instead or static var, use static const.
-TH
xmlns:control="org.ets.main.code.control.*"
import org.ets.main.code.control.ApplicationController;
<!-- ========================================================================== -->
<control:ApplicationController id="controller" />
<!-- ========================================================================== -->
package org.ets.main.code.control
{
import org.nevis.cairngorm.control.FrontController;
import org.ets.main.code.commands.LoginCommand;
public class ApplicationController extends FrontController
{
public function ApplicationController()
{
addCommand( ApplicationController.EVENT_LOGIN, new LoginCommand() );
}
//-------------------------------------------------------------------------
public static const EVENT_LOGIN : String = "login";
}
}
--- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" <[EMAIL PROTECTED]> wrote:
>
> Surprising fb2 did not pick this up
>
> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sufibaba
> Sent: Wednesday, 10 May 2006 12:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Caringorm with f2b3 issues
>
> Graham,
>
> I noticed that cairngorm is mispelled. You've got
> org.nevis.caringorm.control.FrontController
>
> Tim
>
>
> --- In flexcoders@yahoogroups.com, Graham Weldon graham.weldon@
> wrote:
> >
> > Hi All,
> >
> > Currently i am implementing the caringorm framework into an application
> > I am building, and I have managed to layout the basics of my front
> > controller, commands and other events. I have then attempted to include
> > the controller as described in Steven Websters notes on the
> framework (i
> > have included my code below).
> >
> > It is reporting the following errors:
> >
> > 1 . Definition com.objectconnections.mypackage:ClientController could
> > not be found.
> > 2 . Type was not found or was not a compile-time constant:
> ClientController.
> >
> > Any help at all would be appreciated.
> >
> > Kind Regards,
> > Graham Weldon
> >
> >
> > ------------------------------------------------------------
> > /MyProject.mxml
> > ------------------------------------------------------------
> > <mx:Application
> > layout="absolute"
> > xmlns:mx="http://www.adobe.com/2006/mxml"
> > xmlns:control="com.objectconnections.mypackage.*">
> >
> > *<control:ClientController id="controller"/>*
> >
> > </mx:Application>
> > ------------------------------------------------------------
> >
> >
> > ------------------------------------------------------------
> > /com/objectconnections/mypackage/ClientController.as
> > ------------------------------------------------------------
> > *package* com.objectconnections.mypackage
> > {
> > *import* org.nevis.caringorm.control.FrontController;
> >
> > *public class* ClientController *extends* FrontController
> > {
> > *public static var* EVENT_OPEN = "open";
> > *public static var *EVENT_CLOSE = "close";
> > *public static var* EVENT_EXIT = "exit";
> >
> > *public function* ClientController() : *void*
> > {
> > this.setupCommands();
> > }
> >
> > *private function* setupCommands() : *void*
> > {
> > // Nothing here yet, we'll do a bunch of
> > // this.addCommand()'s once we get the basics
> > // compiling and working.
> > }
> > }
> > }
> > ------------------------------------------------------------
> >
>
>
>
>
>
>
>
>
> --
> 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
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.