# Dynamic masking

**URL:** <https://forum.kirupa.com/t/dynamic-masking/238599>\
**Category:** Uncategorized\
**Created:** [September 12, 2007, 11:31pm UTC](https://forum.kirupa.com/t/dynamic-masking/238599 "2007-09-12T23:31:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dontswimtoshore](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dontswimtoshore](https://forum.kirupa.com/u/dontswimtoshore)\
**Post date:** [September 12, 2007, 11:31pm UTC](https://forum.kirupa.com/t/dynamic-masking/238599/1 "2007-09-12T23:31:35Z")

</div>

Hi all,

newbie trying to do dynamic masking with externally loaded images. followed a tutorial that led me to this code:

```auto
//Make Mask
function dynmask(){
_root.createEmptyMovieClip('rectmask',1);
_root.rectmask.moveTo(0,0);
_root.rectmask.beginFill(0x000088)
_root.rectmask.lineTo(100,0);
_root.rectmask.lineTo(100,100);
_root.rectmask.lineTo(0,100);
_root.rectmask.endFill();
_root.maskme.setMask(_root.rectmask);
}

masker.onRelease = function(){
	//Load Image
	_root.createEmptyMovieClip('maskme', 0);
	_root.maskme.loadMovie("http://farm2.static.flickr.com/1145/1075852283_69ddb14267.jpg", "pic");
	_root.maskme._x = 0;
	_root.maskme._y = 0;
	dynmask();
	}

```

syntax appears right, but its not working. this should be super simple.

I was clobbered over the head this morning when asked to get the site I’m working on to flow like this:

[http://tronicstudio.com/](http://tronicstudio.com/)

more specifically, the way the images transition when clicked on…the collections section. Its real slick, and I’m trying to figure out if its a dynamic mask or an image sequence. I need to make an XML powered gallery that works that fast.

any tips?

thanks!

- dan.
