# Masking out off-stage content of loaded .swf?

**URL:** https://forum.kirupa.com/t/masking-out-off-stage-content-of-loaded-swf/295387
**Category:** flash
**Created:** [August 29, 2009, 12:51am UTC](https://forum.kirupa.com/t/masking-out-off-stage-content-of-loaded-swf/295387 "2009-08-29T00:51:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Finne](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@Finne](https://forum.kirupa.com/u/Finne)
#### Post date: [August 29, 2009, 12:51am UTC](https://forum.kirupa.com/t/masking-out-off-stage-content-of-loaded-swf/295387/1 "2009-08-29T00:51:09Z")

</div>

I’m just starting out with AS3 and this is what I’m trying to do:

1. I have an external .swf banner which is 900x250 pixels
2. I want to load this .swf into my main project, using this code:

var myLoader:Loader = new Loader();  
addChild(myLoader);  
var myRequest:URLRequest = new URLRequest(“ptp.swf”);  
myLoader.load(myRequest);

1. The problem is that the .swf banner that is being loaded has content ‘outside the stage’ so instead of just showing the 900x250 area I see all the off-stage content as well.

How do I ‘mask out’ the off-stage content of the loaded .swf so that it will be only the 900x250 that I want?

Thanks in advance!!
