Guest User

Untitled

a guest
Nov 17th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.          * draw rectangle for printable area
  3.          * */
  4.         private function drawArea():void
  5.         {
  6.             designContainerComponent.x = _currentDesignArea.x;
  7.             designContainerComponent.y = _currentDesignArea.y;
  8.            
  9.             //fill validArea
  10.             _validArea.graphics.clear();
  11.             _validArea.graphics.beginFill(0xFF0000, .5);
  12.             _validArea.graphics.lineStyle(2,0xFF0000,1,false,LineScaleMode.NORMAL);
  13.            
  14.             _validArea.graphics.moveTo( _currentDesignArea.width/2, 0 )
  15.             _validArea.graphics.lineTo( 0, _currentDesignArea.height )
  16.             _validArea.graphics.lineTo( _currentDesignArea.width, _currentDesignArea.height )
  17.             _validArea.graphics.lineTo( _currentDesignArea.width/2, 0 )
  18.            
  19.             /*_validArea.graphics.drawRect(
  20.                 0,
  21.                 0,
  22.                 _currentDesignArea.width,
  23.                 _currentDesignArea.height);*/
  24.            
  25.            
  26.             _validArea.graphics.endFill();
  27.            
  28.             //fill mask
  29.             _mask.graphics.clear();
  30.             _mask.graphics.beginFill(0xFF0000, 1);
  31.             /*_mask.graphics.drawRect(
  32.                 0,
  33.                 0,
  34.                 _currentDesignArea.width,
  35.                 _currentDesignArea.height);*/
  36.            
  37.             _mask.graphics.moveTo( _currentDesignArea.width/2, 0 )
  38.             _mask.graphics.lineTo( 0, _currentDesignArea.height )
  39.             _mask.graphics.lineTo( _currentDesignArea.width, _currentDesignArea.height )
  40.             _mask.graphics.lineTo( _currentDesignArea.width/2, 0 )
  41.            
  42.             _mask.graphics.endFill();
  43.            
  44.            
  45.            
  46.         }
Add Comment
Please, Sign In to add comment