# Masking problem actionscript 3

**URL:** <https://forum.kirupa.com/t/masking-problem-actionscript-3/304278>\
**Category:** flash\
**Created:** [February 4, 2010, 7:16pm UTC](https://forum.kirupa.com/t/masking-problem-actionscript-3/304278 "2010-02-04T19:16:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockfish](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@rockfish](https://forum.kirupa.com/u/rockfish)\
**Post date:** [February 4, 2010, 7:16pm UTC](https://forum.kirupa.com/t/masking-problem-actionscript-3/304278/1 "2010-02-04T19:16:14Z")

</div>

I am creating a dynamic map of the world. Next to the map I have a zoomed detail area focusing on a particular region. The detailed area is a movieclip drawn on the stage, made a symbol and instanced with the name ‘detail\_mc’

I create a new instance of the world map called ‘bigmap’ and add it to the detail \_mc movieclip on the stage then set detail\_mc to be a mask.

The problem is that although the new movieclip is masked it is all one colour, the colour of the detail\_mc mask box. If I change the colour of detail\_mc the map inside becomes that colour. If I look at the world map in the library it has country outlines that are made white when it is masked. This is the code. If anyone could help I’d appreciate it, thanks

var bigmap:MovieClip=new MapandBorders();  
bigmap.x=40;  
bigmap.y=40;  
bigmap.scaleX=2.5;  
bigmap.scaleY=2.5;  
detail\_mc.addChild(bigmap);  
detail\_mc.mask=bigmap;
