1 Reply Latest reply on Nov 18, 2008 11:10 AM by Joe ... Ward

    Q:ShaderFilter...how to import????

    jbach2 Level 1
      Getting the following message when trying to compile to an AIR1.5 file from within the CS4 IDE
      As far as I can tell, ShaderFilter is properly imported as its part of the filters package.
      Can anyone help me out here??

      1017: The definition of base class ByteArrayAsset was not found.

      This is the part of the offending class
      //CODE START
      package filters
      {
      import flash.display.*;
      import flash.events.*;
      import flash.net.*;
      import flash.filters.*;
      import flash.utils.*;



      public class Technodots extends ShaderFilter
      {
      //the file that contains the binary bytes of the PixelBender filter
      [Embed("technodots.pbj", mimeType="application/octet-stream")]
      private var Filter:Class;

      private var _shader:Shader;
      //CODE END
        • 1. Re: Q:ShaderFilter...how to import????
          Joe ... Ward Level 4
          ByteArrayAsset is a Flex class related to the [Embed] metadata tag. Make sure that your Library path includes the flex.swc in the Common/Configuration/ActionScript 3.0/libs/flex_sdk_3 subdirectory of your Flash CS4 installation folder. You can check this on the Advanced ActionScript 3 Settings dialog.

          For me, Flash opened a dialog to create the Library path entry the first time I used the embed tag.