# Moving a clip added dynamically

**URL:** <https://forum.kirupa.com/t/moving-a-clip-added-dynamically/21989>\
**Category:** Uncategorized\
**Created:** [May 28, 2003, 9:34pm UTC](https://forum.kirupa.com/t/moving-a-clip-added-dynamically/21989 "2003-05-28T21:34:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![solid](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@solid](https://forum.kirupa.com/u/solid)\
**Post date:** [May 28, 2003, 9:34pm UTC](https://forum.kirupa.com/t/moving-a-clip-added-dynamically/21989/1 "2003-05-28T21:34:05Z")

</div>

Maybe this will be a simple question to answer.

I’m parsing an XML file and attaching a movie clip to the stage multiple times with data from the XML file. That part works ok.

What I would like is for each clip that was attached to scroll slowly.

How do I add the onclipevent code to each instance of that movie clip?

I tried adding it to the movie clip in the library, but I still get the error about it having to be a movie clip. Does all of this make sense?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 9:55pm UTC](https://forum.kirupa.com/t/moving-a-clip-added-dynamically/21989/2 "2003-05-28T21:55:10Z")

</div>

I think to simplify -\>\>\> can I add actions to movie clips added dynamically?
