1 Reply Latest reply on Jul 19, 2007 10:49 AM by Newsgroup_User

    problem loading BlurFilter Class

    miquael Level 1
      For some reason I am not able to properly load the BlurFilter Class. I have:

      import flash.filters.BitmapFilter;

      (I have my AS2.0 Class Path settings to: INDRA:Applications:Macromedia Flash 8:First Run:Classes:FP8:flash:filters).

      But I get this error:

      **Error** /Applications/Macromedia Flash 8/First Run/Classes/FP8/flash/filters/BlurFilter.as: Line 6: The class being compiled, 'flash.filters.BlurFilter', does not match the class that was imported, 'BlurFilter'.
      intrinsic class flash.filters.BlurFilter extends flash.filters.BitmapFilter

      I also tried loading in the BitMapFilter Class, but then get two errors::

      import flash.filters.BitmapFilter;
      import flash.filters.BlurFilter;


      Any insights?

        • 1. Re: problem loading BlurFilter Class
          Level 7
          Hi Miquael,

          Because your class path is pointing to flash.filters already, Flash
          considers that that's the root. So your import statement should be:

          import BitmapFilter;
          import BlurFilter;

          If you want to use the full qualified path as below, you need to set
          your class path so that it points to the correct "root":

          INDRA:Applications:Macromedia Flash 8:First Run:Classes:FP8

          Typically, however, these classes should be included with the total
          compilation so you shouldn't need to include them. You can try simply
          using "." as a classpath and it
          should work just as well.

          Regards,
          Patrick
          BNM

          miquael wrote:
          > For some reason I am not able to properly load the BlurFilter Class. I have:
          >
          > import flash.filters.BitmapFilter;
          >
          > (I have my AS2.0 Class Path settings to: INDRA:Applications:Macromedia Flash
          > 8:First Run:Classes:FP8:flash:filters).
          >
          > But I get this error:
          >
          > **Error** /Applications/Macromedia Flash 8/First
          > Run/Classes/FP8/flash/filters/BlurFilter.as: Line 6: The class being compiled,
          > 'flash.filters.BlurFilter', does not match the class that was imported,
          > 'BlurFilter'.
          > intrinsic class flash.filters.BlurFilter extends
          > flash.filters.BitmapFilter
          >
          > I also tried loading in the BitMapFilter Class, but then get two errors::
          >
          > import flash.filters.BitmapFilter;
          > import flash.filters.BlurFilter;
          >
          >
          > Any insights?
          >
          >
          >