# How to MASK an external .SWF movie?

**URL:** https://forum.kirupa.com/t/how-to-mask-an-external-swf-movie/324970
**Category:** flash
**Created:** [September 18, 2011, 5:42pm UTC](https://forum.kirupa.com/t/how-to-mask-an-external-swf-movie/324970 "2011-09-18T17:42:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)
#### Post date: [September 18, 2011, 5:42pm UTC](https://forum.kirupa.com/t/how-to-mask-an-external-swf-movie/324970/1 "2011-09-18T17:42:43Z")

</div>

Hi,

I am using external .SWF movie on stage by using the following code. I want to mask some of the portion of this movie. How can I mask an external movie?

Code:

```auto
var mySwf1:SWFLoader = new SWFLoader("Clock.swf", {width:200, height:200, x:-300, y:-300, container:this, onComplete:completeHandler1});

mySwf1.load();

function completeHandler1(event:LoaderEvent):void {
    TweenMax.fromTo(event.target.content, 3, {x:270, y:250, scaleX:.5, scaleY:.5, alpha:0}, {x:270, y:250, scaleX:2, scaleY:2, alpha:1, delay:3});

   TweenLite.delayedCall(30, mySwf1.unload)

```

I have entered the [COLOR=#ff0000]\*\*code \*\*[/COLOR]on on [COLOR=#ff0000]\*\*Layer2 \*\*[/COLOR]and created a [COLOR=#ff0000]\*\*MASK \*\*[/COLOR](Circle shape) on [COLOR=#ff0000]\*\*Layer1 \*\*[/COLOR]and selected the MASK option by right clicking on [COLOR=#ff0000] **Layer1** [/COLOR]. But It did not work. How to resolve the problem?

Please help.
