# Noob question: Shared listeners

**URL:** https://forum.kirupa.com/t/noob-question-shared-listeners/289901
**Category:** flash
**Created:** [June 6, 2009, 5:33pm UTC](https://forum.kirupa.com/t/noob-question-shared-listeners/289901 "2009-06-06T17:33:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stupidsaint](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@stupidsaint](https://forum.kirupa.com/u/stupidsaint)
#### Post date: [June 6, 2009, 5:33pm UTC](https://forum.kirupa.com/t/noob-question-shared-listeners/289901/1 "2009-06-06T17:33:27Z")

</div>

I have this code:

```auto

var numOfLinks = 4
for (var i=0; i<numOfLinks; i++) {
var breakImg = new breaker();
breakImg.x = 0
breakImg.y = stage.stageHeight/numOfLinks*i
addChild(breakImg);
breakImg.addEventListener(Event.ENTER_FRAME, mover);
}

function mover(e:Event){
	var thim:MovieClip=MovieClip(e.target);
	thim.x++
}

```

I want all of them to move to the right but it keeps returning this error:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@ebc1629 to flash.display.MovieClip.  
at as3\_navigation\_fla::MainTimeline/texterMover()

I just need all of the movie clips to have the same listener

Can anyone help
