# unloadAndStop() problem

**URL:** <https://forum.kirupa.com/t/unloadandstop-problem/290653>\
**Category:** flash\
**Created:** [June 17, 2009, 5:43pm UTC](https://forum.kirupa.com/t/unloadandstop-problem/290653 "2009-06-17T17:43:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![annettegeek](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@annettegeek](https://forum.kirupa.com/u/annettegeek)\
**Post date:** [June 17, 2009, 5:43pm UTC](https://forum.kirupa.com/t/unloadandstop-problem/290653/1 "2009-06-17T17:43:50Z")

</div>

I’ve run into a problem with unloadAndStop().

Brief description of project:  
A parent swf has a stage event keyboard listener.  
The parent loads and unloads the child swfs.

If there is a child swf with a radio button or a checkbox components, the keyboard event listener is killed in the parent when it unloads the swf and loads the next child. And in the debug window I see an ioError:

[FONT=Times New Roman]Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.[/FONT]

The error never occurs if the child swf has a text input component or no components. In all cases I am removing the eventListeners from the child swf before loading another child. Does not matter if unloadAndStop(false) is used either.

The problem does not occur if I just use unload();

Anyone else seen something like this?
