2 Replies Latest reply on Apr 28, 2008 7:31 AM by brad carvey-kplRXI

    1037: Packages cannot be nested

    brad carvey-kplRXI
      I am new to Flex and cannot get an external actionscript to compile without a 1037:Packages cannot be nested error.
      I am running Vista with a Flex 3 professional license for Eclipse.

      To simplify I created a simple class and used a mx:Script command.

      In the src directory I have websiteATAA.mxml, with the following line.
      <mx:Script source="com/scripts/RemoteFileUtils.as"/>

      In the src directory I have a com directory and a scripts subdirectory, where I have the following script (RemoteFilesUtils.as).
      package com.scripts
      {
      public class RemoteFileUtils
      {
      public function RemoteFileUtils()
      {
      }
      }
      }