# Adding Event Listeners to dynamic Lib Items

**URL:** <https://forum.kirupa.com/t/adding-event-listeners-to-dynamic-lib-items/309772>\
**Category:** flash\
**Created:** [May 24, 2010, 3:48pm UTC](https://forum.kirupa.com/t/adding-event-listeners-to-dynamic-lib-items/309772 "2010-05-24T15:48:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiKaL](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KiKaL](https://forum.kirupa.com/u/KiKaL)\
**Post date:** [May 24, 2010, 3:48pm UTC](https://forum.kirupa.com/t/adding-event-listeners-to-dynamic-lib-items/309772/1 "2010-05-24T15:48:08Z")

</div>

What I want to do is be able to click a button that adds an Item to the stage and then you are able to drag the item around on the stage. I know how to do these things separately as in if the item is already on the stage I know how to add the code to drag it and I know how to create a button that brings a library item on the stage. How would I combine the two?
