# Onrelease trouble

**URL:** <https://forum.kirupa.com/t/onrelease-trouble/210113>\
**Category:** Uncategorized\
**Created:** [December 15, 2006, 1:58am UTC](https://forum.kirupa.com/t/onrelease-trouble/210113 "2006-12-15T01:58:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mak\_Valley](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Mak\_Valley](https://forum.kirupa.com/u/Mak_Valley)\
**Post date:** [December 15, 2006, 1:58am UTC](https://forum.kirupa.com/t/onrelease-trouble/210113/1 "2006-12-15T01:58:14Z")

</div>

```auto
var dumbarray:Array = new Array("cycle","date","graduation","flashback", "drivehome");
for (var i:Number = 0; i < dumbarray.length; i++){
this.createEmptyMovieClip(dumbarray*, this.getNextHighestDepth());
eval(dumbarray*).loadMovie(dumbarray*+".swf");
var thex = 0;
var they = 0;
	eval(dumbarray*).onEnterFrame = function(){
		this._x = thex;
		this._y = they;
		thex += 330;
			if (thex+300 >= Stage.width){
				they += 250;
				thex = 0;
			}
	}

	eval(dumbarray*).onRelease = function(){
		trace(dumbarray*);
	}
	
}

```

everything works as needed minus the onrelease command. and i don’t know where i’m going wrong.
