# Rollover and timelines

**URL:** <https://forum.kirupa.com/t/rollover-and-timelines/241565>\
**Category:** Uncategorized\
**Created:** [October 15, 2007, 4:29pm UTC](https://forum.kirupa.com/t/rollover-and-timelines/241565 "2007-10-15T16:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olilish](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@olilish](https://forum.kirupa.com/u/olilish)\
**Post date:** [October 15, 2007, 4:29pm UTC](https://forum.kirupa.com/t/rollover-and-timelines/241565/1 "2007-10-15T16:29:49Z")

</div>

hi,

Ive got 6 button movieclips on the stage, and a gallery style movie clip holding pics.

Simply I want to be able to rollover any of the 6 button movieclips and have the gallery clip navigate to different points on its timeline, not the global timeline.

I belive i need to use code something along the lines of the following:

1mc.onRollOver = function () {  
homegal\_mc.gotoAndPlay(“1”);  
}  
2mc.onRollOver = function () {  
homegal\_mc.gotoAndPlay(“2”);  
}

but i seem to be getting a syntax error and nothing happening.

Thanks!!
