1 Reply Latest reply on Sep 2, 2010 2:12 AM by Flex4Education

    Problem with Accordion/embed fonts in AS

    Flex4Education

      Hello,

       

      I have a package named "accordion" in my Flex Project.


      In there, I have a file named "Accordion.as" with the content:

       

      include "AccordionHeader.as";
      
           [Embed(systemFont='Arial', fontWeight='bold', fontName='accordionHeader', mimeType='application/x-font', embedAsCFF='false')] 
           
      private var font1:Class;
      

       

      Then I have the file "AccordionHeader.as" in same package "accordion".

       

      But Flash Builder returns an error with the message:

      "Packages may not be nested".

       

      What am I doing wrong?

       

      I tried to create a separate file for the class "font1" but it didn't work. I read that it could also be that i forgot a brace, so now I'm confused why this error appears.

       

      Thanks.

      Regards, Michael.