• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
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

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

clip.png

Views

217

Translate

Translate

Report

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

Votes

Translate

Translate
LEGEND ,
Dec 28, 2016 Dec 28, 2016

Copy link to clipboard

Copied

Is there some reason a mask wouldn't work?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

I don't know what the mask you mean.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

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