# AS3 not in buttons/movieclips wtf?

**URL:** <https://forum.kirupa.com/t/as3-not-in-buttons-movieclips-wtf/229939>\
**Category:** flash\
**Created:** [June 21, 2007, 12:09pm UTC](https://forum.kirupa.com/t/as3-not-in-buttons-movieclips-wtf/229939 "2007-06-21T12:09:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chesso](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Chesso](https://forum.kirupa.com/u/Chesso)\
**Post date:** [June 21, 2007, 12:09pm UTC](https://forum.kirupa.com/t/as3-not-in-buttons-movieclips-wtf/229939/1 "2007-06-21T12:09:46Z")

</div>

I just thought I would try it out and see if I can really get performance enhancements in my current working project (I am not too far into it).

And now I read that apparently you cannot store action script code into buttons and movieclips which of my thinking right now, really screws me.

I put base code into my movieclips and buttons (I really like being able to seperate and split my code up, it just makes things easier, I know how to navigate and access them easily this way anyway).

So how the hell am I going to manage duplications of movie clips and/or buttons with the code I normally have in them (now that I can’t), how can I compensate for that?

Can I assign them to use a specific event handler, or what is the best way to go about handling this situation? (where I normally have base code inside the movieclip/button and just duplicate etc at runtime).
