Please disregard, even though it was giving me the error given when a class is not being imported ("Type annotation is not a compile time constant"), the problem was with the visibility of the interface (needed to be public). Also there was a late night typo in my last email ;)
 
Best,
Richard


From: Richard Leggett [mailto:[EMAIL PROTECTED]
Sent: 20 February 2006 22:27
To: 'flexcoders@yahoogroups.com'
Subject: 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