Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Dec 27, 2016 Dec 27, 2016

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

clip.png

344
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 29, 2016 Dec 29, 2016
Translate
LEGEND ,
Dec 28, 2016 Dec 28, 2016

Is there some reason a mask wouldn't work?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 28, 2016 Dec 28, 2016

I don't know what the mask you mean.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 29, 2016 Dec 29, 2016
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines