# Mask over script

**URL:** <https://forum.kirupa.com/t/mask-over-script/107582>\
**Category:** Uncategorized\
**Created:** [April 16, 2004, 6:40pm UTC](https://forum.kirupa.com/t/mask-over-script/107582 "2004-04-16T18:40:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_mucho](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@imported\_mucho](https://forum.kirupa.com/u/imported_mucho)\
**Post date:** [April 16, 2004, 6:40pm UTC](https://forum.kirupa.com/t/mask-over-script/107582/1 "2004-04-16T18:40:25Z")

</div>

Hi All,

is it possible to have a mask over this script:  
\_root.createEmptyMovieClip(“emptyMC”, 1);  
\_root.emptyMC.\_x = 25;  
\_root.emptyMC.\_y = 25;  
i = Math.ceil(Math.random()\*6);  
\_root.emptyMC.loadMovie (“random/” + “0” + i + “.jpg”)  
stop();

??

what it does is load a picture and centers it, what would be nice is to have a mask over it… something like this:

```
 *****************
 *******************

```

* * *

```
*******************
 *****************

```

muchas gracias for your help,  
m.
