# Attach buttons to timeline

**URL:** <https://forum.kirupa.com/t/attach-buttons-to-timeline/269086>\
**Category:** Uncategorized\
**Created:** [August 22, 2008, 10:16am UTC](https://forum.kirupa.com/t/attach-buttons-to-timeline/269086 "2008-08-22T10:16:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spanjj](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@Spanjj](https://forum.kirupa.com/u/Spanjj)\
**Post date:** [August 22, 2008, 10:16am UTC](https://forum.kirupa.com/t/attach-buttons-to-timeline/269086/1 "2008-08-22T10:16:25Z")

</div>

I’m using OOP and attaching objects to the timeline like so:

function Game(timeline:MovieClip) {  
ground = timeline.attachMovie(“Ground”, “Ground\_MC”, timeline.getNextHighestDepth(), {\_x:-10, \_y:230});  
}

I’ve got a movieclip with a button inside it, how do i locate this button through the actionscript and apply actions to it? The button has an instance name of ‘starter’.

Alternatively…

How could I attach a button from the library to the timeline?

Preferably the first option due to needing to animate the movieclip and buttons within moving off the stage…

Thanks!
