# Loading onclip events in a loaded movie

**URL:** <https://forum.kirupa.com/t/loading-onclip-events-in-a-loaded-movie/12809>\
**Category:** flash\
**Created:** [February 4, 2003, 11:34pm UTC](https://forum.kirupa.com/t/loading-onclip-events-in-a-loaded-movie/12809 "2003-02-04T23:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brapoport](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@brapoport](https://forum.kirupa.com/u/brapoport)\
**Post date:** [February 4, 2003, 11:34pm UTC](https://forum.kirupa.com/t/loading-onclip-events-in-a-loaded-movie/12809/1 "2003-02-04T23:34:36Z")

</div>

Ok here it is. I’m very new to flash, and need your guys help. I have a timeline, with an instance iDropZone. I am loading an SWF into that instance. The .swf that i’m loading has an OnClip (MouseUp) event in its Action script. Which i use to open a new browser window when the clip is clicked. When I run the swf by itself it works fine, but when I load it into my main movie, the blank window opens even if I click outside of the iDropZone. I understand that it has to do with the path to target. But Flash gives me an error when i do \_root.iDropZone.OnClipEvent…  
Any ideas on how to work this out?

Thanks  
Boris

---

<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 5, 2003, 12:34am UTC](https://forum.kirupa.com/t/loading-onclip-events-in-a-loaded-movie/12809/2 "2003-02-05T00:34:41Z")

</div>

well … the [color=red]mouseDown[/color] and [color=red]mouseUp[/color] events checks whenever the mouse is up or down in the whole movie … no matter where the action is if your press or release the mouse the action is executed

use [color=red]press[/color] and [color=red]release[/color] handlers instead

also note that if you’re using those handlers from the timeline it’s a little different. **example**

if you place the actions in some movie clip or button you use  
[color=red]on (release) {  
}[/color]

if you place the actions in the timeline you use  
[color=red]instanceName.onRelease = function {  
}[/color]

which also explains why you got the error …

hope it helps 🙂
