I believe Doug is right, you will have to make sure the name of your MXML component and AS class are different. But even at that, you cannot extend Application because by doing so it will not generate the appropriate hidden code at compile time to make your app work. What u should do is extends Box, Panel, etc... and then drop those into your app.
Dimitrios Gianninas Optimal Payments Inc. -----Original Message----- From: flexcoders@yahoogroups.com on behalf of Doug Lowder Sent: Tue 4/24/2007 5:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Code Behind Woes File name/class name mismatch? I think you'll need to either change your class name to "myClassBase", or change the filename to "myClass.as". --- In flexcoders@yahoogroups.com, "Jim Grinsfelder" <[EMAIL PROTECTED]> wrote: > > I'm confused again. I read Ted's thing on Code Behind and got all excited. > > > > > Now I'm getting "Unable to locate specified base class 'app.myClass' for > component class 'myClass' when I build the following: > > > > > > [file: myClassBase.as] > > package app > > { > > import mx.core.Application; > > > > public class myClass extends Application > > { > > } > > } > > > > > > [file: myclass.mxml] > > <?xml version="1.0" encoding="utf-8"?> > > <app:myClass xmlns:app="app.*" xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > > > > </app:myClass> > > > > > > What did I neglect to do? > -- WARNING ------- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -------------- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
<<winmail.dat>>