Try

public interface ISequence

 

João Fernandes
Sistemas de Informação

Programador Informático
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]


From: [email protected] [mailto:[email protected]] On Behalf Of Richard Leggett
Sent: segunda-feira, 20 de Fevereiro de 2006 22:27
To: [email protected]
Subject: [flexcoders] Flex 2 - Lonely Interfaces (classes) not allowed

 

Hi,

 

Sorry if this has come up, new on the list and to Flex 2, I tried a search but found nothing as yet...

 

Am I right in thinking Interfaces can only be defined in AS files that also include a public class? Without adding a class to the following file I get errors wherever I try to type things with ISequence...

 

package ws.tink.tinker.controller.sequences
{

 import ws.tink.tinker.model.StepData;
 
 interface ISequence
 {
  function getNextStepData():StepData;
  function getPreviousStepData():StepData;

 }
 
 public class Nothing() { } // Without this, it fails
}

 

 

Just to note there are other classes in that package, seemed strange to me.

 

Thanks,

Richard




--
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




Reply via email to