# FMX - Control clip timeline

**URL:** <https://forum.kirupa.com/t/fmx-control-clip-timeline/98915>\
**Category:** Uncategorized\
**Created:** [January 12, 2004, 9:04pm UTC](https://forum.kirupa.com/t/fmx-control-clip-timeline/98915 "2004-01-12T21:04:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chappo](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@Chappo](https://forum.kirupa.com/u/Chappo)\
**Post date:** [January 12, 2004, 9:04pm UTC](https://forum.kirupa.com/t/fmx-control-clip-timeline/98915/1 "2004-01-12T21:04:42Z")

</div>

I have a question about controlling clip timeline with AS.

I have a button(Button.A) that has a menu-like objects in the timeline and the following AS.

[AS]onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
if (this.\_currentframe\<this.\_totalframes) {  
nextFrame();  
}  
} else {  
if (this.\_currentframe\>1) {  
prevFrame();  
}  
}  
}  
[/AS]

What i want to do now is to have another button(Button.B) that will tell the (Button.A) to do the prevFrame.

Is this possible ???

Hope it’s understandable 🙂
