# onClipEvent to attached movieClip

**URL:** https://forum.kirupa.com/t/onclipevent-to-attached-movieclip/298697
**Category:** flash
**Created:** [October 23, 2009, 8:57am UTC](https://forum.kirupa.com/t/onclipevent-to-attached-movieclip/298697 "2009-10-23T08:57:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ms\_buggy](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@ms\_buggy](https://forum.kirupa.com/u/ms_buggy)
#### Post date: [October 23, 2009, 8:57am UTC](https://forum.kirupa.com/t/onclipevent-to-attached-movieclip/298697/1 "2009-10-23T08:57:15Z")

</div>

Hi,  
I have short script (onClipEvent (enterFrame) {some code here}) that works well on movieClip that is on Stage. I’ve added the script to ‘actions - movie clip’ -window).  
But my problem is that movieclip should be attached dynamically usign actionscript, so I cannot add the script to the clip, as I used to.  
Can anyone please point me in the right direction !
