# Sandboxing an external swf

**URL:** <https://forum.kirupa.com/t/sandboxing-an-external-swf/290342>\
**Category:** Uncategorized\
**Created:** [June 12, 2009, 10:39pm UTC](https://forum.kirupa.com/t/sandboxing-an-external-swf/290342 "2009-06-12T22:39:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toad013](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@toad013](https://forum.kirupa.com/u/toad013)\
**Post date:** [June 12, 2009, 10:39pm UTC](https://forum.kirupa.com/t/sandboxing-an-external-swf/290342/1 "2009-06-12T22:39:20Z")

</div>

hey guys,

i’m wondering if there’s a way to sandbox an external swf. basically i’m loading in 3rd party swfs into my app and i want to prevent those swfs from doing anything malicious (ie adding things to ‘root.stage’, etc). However I will still like those swfs to get events if they needed (ie AddedToStage, stage events, mouse events, etc…). all i can think of right now is to load the swfs from a different domain, not call Security.allowDomain on those domains, and somehow propogate the events to those swfs. i think i’m going about this all wrong and wondering if there’s an easier way. can anyone shed some light on this? thanks
