# Masking and coding

**URL:** <https://forum.kirupa.com/t/masking-and-coding/224499>\
**Category:** Uncategorized\
**Created:** [May 2, 2007, 8:45pm UTC](https://forum.kirupa.com/t/masking-and-coding/224499 "2007-05-02T20:45:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spyderfx](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@spyderfx](https://forum.kirupa.com/u/spyderfx)\
**Post date:** [May 2, 2007, 8:45pm UTC](https://forum.kirupa.com/t/masking-and-coding/224499/1 "2007-05-02T20:45:03Z")

</div>

i’m using this code to load external movies

function loadEx(mc){  
this.createEmptyMovieClip(“myMc”, this.getNextHighestDepth());  
myMc.\_x = 190.3, myMc.\_y = 126;  
myMc.loadMovie(mc);  
}

loadEx(“home.swf”);

but i’m trying to have them masked inside a box. how does one go about this? i have objects in the movie flying in from the side and i don’t want to be able to see it outside the box.
