# Click causes Player hang/freeze

**URL:** https://forum.kirupa.com/t/click-causes-player-hang-freeze/301345
**Category:** flash
**Created:** [December 8, 2009, 2:13am UTC](https://forum.kirupa.com/t/click-causes-player-hang-freeze/301345 "2009-12-08T02:13:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dtk13](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dtk13](https://forum.kirupa.com/u/dtk13)
#### Post date: [December 8, 2009, 2:13am UTC](https://forum.kirupa.com/t/click-causes-player-hang-freeze/301345/1 "2009-12-08T02:13:12Z")

</div>

I’m writing all of my actionscript in flex so to get the GUI, that was designed in Flash CS4, I have exported out the swf and load it in runtime.

```auto

var app:Loader = new Loader();
app.contentLoaderInfo.addEventListener(Event.COMPLETE, loadEvent, false, 0, true);
app.load(new URLRequest("interface.swf"));

```

Then I put the swf data into a movieclip and add that to the stage. If I add an event listener for a mouse click on any part of the GUI the whole application hangs for a full second. Any cause?
