# \[Flash8\] onRelease not working for createEmptyMovieClip

**URL:** <https://forum.kirupa.com/t/flash8-onrelease-not-working-for-createemptymovieclip/205930>\
**Category:** flash\
**Created:** [November 3, 2006, 8:32am UTC](https://forum.kirupa.com/t/flash8-onrelease-not-working-for-createemptymovieclip/205930 "2006-11-03T08:32:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsclan](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tsclan](https://forum.kirupa.com/u/tsclan)\
**Post date:** [November 3, 2006, 8:32am UTC](https://forum.kirupa.com/t/flash8-onrelease-not-working-for-createemptymovieclip/205930/1 "2006-11-03T08:32:19Z")

</div>

Can anyone explain to me why this code doesn’t work?

Its suppose to create a Movie called container which has a text field in it then when the container movie clip is clicked on “Goodbye World” pops up in the trace window.

So far the only thing this code does is display “Hello World” but no action is taken when it is clicked on. Why is this?

```auto
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var label:TextField = this.createTextField("label", 1, 0, 0, 150, 20);
label.text = "Hello World";
container.onRelease = clickHandler;
	
function clickHandler():Void {
	trace("Goodbye World");
}

```

Thank you  
Graeme
