# Actionscript masking - PLEASE HELP

**URL:** <https://forum.kirupa.com/t/actionscript-masking-please-help/42625>\
**Category:** Uncategorized\
**Created:** [February 11, 2004, 5:51am UTC](https://forum.kirupa.com/t/actionscript-masking-please-help/42625 "2004-02-11T05:51:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiband](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@aiband](https://forum.kirupa.com/u/aiband)\
**Post date:** [February 11, 2004, 5:51am UTC](https://forum.kirupa.com/t/actionscript-masking-please-help/42625/1 "2004-02-11T05:51:19Z")

</div>

I really need some help with masking the attached document. Does anybody know how to do this.

It’s a little wierd, because it’s almost all actionscript.

Is it even possible???

THANKS!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2004, 12:23pm UTC](https://forum.kirupa.com/t/actionscript-masking-please-help/42625/2 "2004-02-11T12:23:53Z")

</div>

Hi,  
I haven’t look at the file but I’ve used levitated textspace before and what he does is attach the class to an emptyMovieClip on stage. Find out what’s the depth of that emptyMovieClip and create another with a higher depth number. Draw whatever the shape of the mask on it and mask the other movieClip

Something like:

[AS]

this.createEmptyMovieClip(“mask”, 9999);  
with(this.mask){  
beginFill(0x0000FF, 100);  
moveTo(0, 0);  
lineTo(stageWidth, 0);  
lineTo(stageWidth, stageHeight);  
lineTo(0, stageHeight);  
lineTo(0, 0);  
endFill();  
}  
textSpaceContainer\_mc.setMask(this.mask);

[/AS]

textSpaceContainer\_mc being the MC the class is attached to

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 9:13am UTC](https://forum.kirupa.com/t/actionscript-masking-please-help/42625/3 "2004-02-12T09:13:26Z")

</div>

THANKS Hound Dawg

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 6:44pm UTC](https://forum.kirupa.com/t/actionscript-masking-please-help/42625/4 "2004-02-12T18:44:34Z")

</div>

You’re welcome 🙂
