# Unexpected behaviour: loadMovie after onRelease

**URL:** <https://forum.kirupa.com/t/unexpected-behaviour-loadmovie-after-onrelease/216978>\
**Category:** Uncategorized\
**Created:** [February 22, 2007, 2:21am UTC](https://forum.kirupa.com/t/unexpected-behaviour-loadmovie-after-onrelease/216978 "2007-02-22T02:21:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dualaud](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@dualaud](https://forum.kirupa.com/u/dualaud)\
**Post date:** [February 22, 2007, 2:21am UTC](https://forum.kirupa.com/t/unexpected-behaviour-loadmovie-after-onrelease/216978/1 "2007-02-22T02:21:23Z")

</div>

hiya,

i’m calling a function ‘released’ on mouse press:

```auto
mymc.onRelease = released;

```

since i am loading an external .swf (among other things) in my main swf in the ‘released’ function:

```auto
var info:MovieClip = t.createEmptyMovieClip("artistinfo", -16380);
artistinfo.loadMovie("new.swf");

```

i assume i am running into the ‘unexpected behaviour’, happening upon .loadMovie connected with onRelease, mentioned in the help file.  
[refering to “loadMovie (MovieClip.loadMovie-Method)” from the help file.]

what are my options? how can i trigger my function by clicking the mouse on the movie and have no ‘unexpected behaviour’?

info about the ‘unexpected behaviour’ in my thread here:

> **[kirupaForum](https://forum.kirupa.com)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

thanks for helping out.  
my project is due in 24 hours.:wasted: doh.

cheers,  
dual
