3 Replies Latest reply on Dec 29, 2016 12:04 PM by ClayUUID

    How to create a lot of addChild on MovieClip and to cut off them by the border MovieClip?

    александрб62780587 Level 1

      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



      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