# setMask depth problem

**URL:** <https://forum.kirupa.com/t/setmask-depth-problem/222184>\
**Category:** flash\
**Created:** [April 11, 2007, 2:10pm UTC](https://forum.kirupa.com/t/setmask-depth-problem/222184 "2007-04-11T14:10:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakka](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yakka](https://forum.kirupa.com/u/yakka)\
**Post date:** [April 11, 2007, 2:10pm UTC](https://forum.kirupa.com/t/setmask-depth-problem/222184/1 "2007-04-11T14:10:29Z")

</div>

Hi guys

I seem to have come across a weeeee problem, I’m using setMask but it seems to be masking the whole mc\_large and the movies init. The only movie I want masking is copyBox…

```auto
            thumbholder.onRelease = function() {        
                if(container._alpha == 100) {
                    container.alphaTo(0,0.5,"easeOutQuad");
                    mc_large._x = 0;
                    mc_large.swapDepths(this.getNextHighestDepth());
                    mc_large.file.text = this.imgfile;
                    mc_large.mc_img.loadMovie(largepath+ this.imgfile);
                    mc_large._y = Math.floor((Stage.height - mc_large._height) / 2);
                    mc_large._x = Math.floor((Stage.width - mc_large._width) / 2);    
                    mc_large.mc_img.alphaTo(100,1,"easeInOutQuad");
                    mc_large.btn_exit.alphaTo(100,0.5,"easeInOutQuad",0.3);
                    mc_large.btn_info.alphaTo(100,0.5,"easeInOutQuad",0.4);    
                    //
                    /* Content */
                    //
                        copyWidth = 430;
                        mc_large.createTextField("copyBox", 10000, 230, 200, copyWidth, 100);
                        var myformat = new TextFormat("Praxis LT Light", 14, 0x000000);
                        mc_large.copyBox.selectable = false;
                        mc_large.copyBox.autoSize = "left";
                        mc_large.copyBox.border = false;
                        mc_large.copyBox.text = this.keywords;    
                            if (mc_large.copyBox.textWidth > copyWidth){
                                    mc_large.copyBox.multiline=true;
                                    mc_large.copyBox.wordWrap=true;
                                }
                        myformat.leftMargin = 10;
                        myformat.rightMargin = 10;
                        myformat.leading = 0;
                        mc_large.copyBox.multiline = true;
                        mc_large.copyBox.wordWrap = true;
                        mc_large.copyBox.background = true;
                        mc_large.copyBox.embedFonts = true;
                        mc_large.copyBox.selectable = false;
                        mc_large.copyBox.backgroundColor = 0xA9D5DE;    
                        mc_large.copyBox.setTextFormat(myformat);
                        //        
                            _root.attachMovie("circlem", "circlem1", 10002, {_x:300, _y:200});
                            mc_large.setMask(circlem1);                        
                        //
                        mc_large.createTextField("titleBox", 10003, 230, 158, 0, 10);
                        var myformat2 = new TextFormat("Praxis LT Semibold", 32, 0x000000);
                        mc_large.titleBox.selectable = false;
                        mc_large.titleBox.autoSize = "left";
                        mc_large.titleBox.border = false;
                        mc_large.titleBox.text = this.imgtitle;    
                        myformat2.leftMargin = 10;
                        myformat2.rightMargin = 10;
                        mc_large.titleBox.background = true;
                        mc_large.titleBox.embedFonts = true;
                        mc_large.titleBox.selectable = false;
                        mc_large.titleBox.backgroundColor = 0xA9D5DE;    
                        mc_large.titleBox.setTextFormat(myformat2);                    
                        //
                            //_root.attachMovie("circlem2", "circle2", 10004, {_x:300, _y:100});
                            //mc_large.setMask(circlem2);                        
                        /* End Content */
                        //
                } else {            
                    mc_large.title_mask.xSlideTo(750, 0.5, "easeInQuad");
                    mc_large.copy_mask.xSlideTo(750, 0.5, "easeInQuad",0.2);
                    mc_large.btn_exit.alphaTo(0,0.5,"easeInOutQuad",0.3);
                    mc_large.btn_info.alphaTo(0,0.5,"easeInOutQuad",0.5);
                    mc_large.mc_img.alphaTo(0,0.5,"easeInOutQuad",0.7);
                    mc_large.xSlideTo(-2000, 0.1, "easeInOutQuad",1.2);
                    container.alphaTo(100,0.5,"easeInOutQuad",1.5);                
                }
            }    

```

Any help would be grand, thanks in advance guys
