Copy link to clipboard
Copied
I draw grid on MovieClip in the library
this.DrawGrid = function (){
for(var iY = 0 ; iY< this.rows; iY++ ){
for(var iX = 0 ; iX< this.cols; iX++ ){
var grid = new lib.RectCell();
grid.x = /*calc X*/
grid.y = /*calc Y*/
this.parent.addChild(grid );
}
// draw grid
this.newInstanceGrid.DrawSetka();
it works but how I can set a border for grid and auto hide grid out of MovieClip.height and MovieClip.width.
I want to cut off border like it
Copy link to clipboard
Copied
Is there some reason a mask wouldn't work?
Copy link to clipboard
Copied
I don't know what the mask you mean.
Copy link to clipboard
Copied