# Function in timeline called fom button question

**URL:** <https://forum.kirupa.com/t/function-in-timeline-called-fom-button-question/214956>\
**Category:** Uncategorized\
**Created:** [February 2, 2007, 11:34am UTC](https://forum.kirupa.com/t/function-in-timeline-called-fom-button-question/214956 "2007-02-02T11:34:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingzenmonkey](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@flyingzenmonkey](https://forum.kirupa.com/u/flyingzenmonkey)\
**Post date:** [February 2, 2007, 11:34am UTC](https://forum.kirupa.com/t/function-in-timeline-called-fom-button-question/214956/1 "2007-02-02T11:34:01Z")

</div>

Hi can anyone give me any advice on how to target a function from a button please?  
as im just starting out.

for example i have a graphic i need to rewined (instead of tween backwards)  
when the button is clicked it calls this function in timeline

mc\_on\_stage.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};

Any directiobnn will help thanks

Louis
