0 Replies Latest reply on Oct 23, 2007 7:38 AM by

    Glowfilter and printing

      I have successfully gotten the glowfilter to work onscreen, but it does not seem to print. Below is the basic code I have been using for onscreen use. The Flash documentation says the filter may not work if the filter is scaled or rotated. What i use in the code is the size of the text field that the filter is applied to but it still does not seem to work properly printing. Any suggestions would be appreciated.


      import flash.filters.GlowFilter;

      function doIt () {

      var color:Number = 0xFF33FF //pGlowColor;
      var alpha:Number = .75;
      var blurX:Number = 10;
      var blurY:Number = 10;
      var strength:Number = 7;
      var quality:Number = 3;
      var inner:Boolean = false;
      var knockout:Boolean = false;
      var filter:GlowFilter = new GlowFilter(color,alpha,blurX,blurY,strength,quality,inner,knockout);
      var filterArray:Array = new Array();
      filterArray.push(filter);

      my_txt.filters = filterArray;
      }


      print_btn.onRelease = function() {

      var my_pj:PrintJob = new PrintJob();

      if (my_pj.start()) {
      my_pj.addPage(my_txt, {xMin:0,xMax:273,yMin:0,yMax:36},{printAsBitmap:true})
      }
      }



      doIt();