# Button AS on timeline

**URL:** <https://forum.kirupa.com/t/button-as-on-timeline/184693>\
**Category:** Uncategorized\
**Created:** [April 6, 2006, 9:32pm UTC](https://forum.kirupa.com/t/button-as-on-timeline/184693 "2006-04-06T21:32:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [April 6, 2006, 9:32pm UTC](https://forum.kirupa.com/t/button-as-on-timeline/184693/1 "2006-04-06T21:32:57Z")

</div>

is it possible to put the actionscript for the button/MC on the timeline in order to easily modify it? Since it´s going to be several instances of the button, if I have to change some AS, it will be easier to change if it is just in one place, the timeline.

---

<div class="post-metadata">

**Author:** ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)\
**Post date:** [April 6, 2006, 10:50pm UTC](https://forum.kirupa.com/t/button-as-on-timeline/184693/2 "2006-04-06T22:50:44Z")

</div>

It sure is. [AS]on(press) { //action }; [/AS]on a MovieClip, would change to [AS]MCname.onPress = function() { //action }; [/AS] on the timeline. 🙂

---

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [April 7, 2006, 12:26pm UTC](https://forum.kirupa.com/t/button-as-on-timeline/184693/3 "2006-04-07T12:26:40Z")

</div>

thanks a lot for the reply. Helped a lot.

---

<div class="post-metadata">

**Author:** ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)\
**Post date:** [April 7, 2006, 4:20pm UTC](https://forum.kirupa.com/t/button-as-on-timeline/184693/4 "2006-04-07T16:20:39Z")

</div>

No problem! :cowboy:
