# Scripted masking

**URL:** <https://forum.kirupa.com/t/scripted-masking/197995>\
**Category:** Uncategorized\
**Created:** [August 21, 2006, 4:14pm UTC](https://forum.kirupa.com/t/scripted-masking/197995 "2006-08-21T16:14:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [August 21, 2006, 4:14pm UTC](https://forum.kirupa.com/t/scripted-masking/197995/1 "2006-08-21T16:14:33Z")

</div>

The attached mask effect (stars\_mask) is something i did by simply tweening.  
I’d like to learn to do effects like these by scripting them. Kind of like the attached swf made by stringy called loaderfade.swf. I tried to go through the code but it is a little more advanced than the effect I’m trying to get. I just want a mask to go from one pic to the next like my example with the stars, but with a smoother, easing, actionscript way to do it.

I suppose it would be duplicating a mc, then using setInterval and an array to set coordinates?

If anyone can give me any input I’d appreciate it.

Thanks
