# onReleaseOutside and stage security dependant

**URL:** https://forum.kirupa.com/t/onreleaseoutside-and-stage-security-dependant/273330
**Category:** flash
**Created:** [October 14, 2008, 3:05pm UTC](https://forum.kirupa.com/t/onreleaseoutside-and-stage-security-dependant/273330 "2008-10-14T15:05:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fedorovici](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@fedorovici](https://forum.kirupa.com/u/fedorovici)
#### Post date: [October 14, 2008, 3:05pm UTC](https://forum.kirupa.com/t/onreleaseoutside-and-stage-security-dependant/273330/1 "2008-10-14T15:05:38Z")

</div>

In order to solve the missing onReleaseOutside event in AS3, everybody seems to use the stage MOUSE\_UP event. However, this is not a solution in the following situation:

movieA.swf loads movieB.swf from a different security domain.  
movieB.swf wants to register stage events like MOUSE\_UP or MOUSE\_LEAVE but trying to access movieB.stage throws a security error because stage is in movieA’s security domain.  
Also loading movieB into A’s security domain, or allowing access to movieB’s domain is not an option.

can anyone please suggest a workaround or a way to implement (the taken-for-granted, most loved) onReleaseOutside in AS3?  
thank you
