# Complex rollover buttons - problems linking to root timeline

**URL:** <https://forum.kirupa.com/t/complex-rollover-buttons-problems-linking-to-root-timeline/147437>\
**Category:** Uncategorized\
**Created:** [May 10, 2005, 4:45pm UTC](https://forum.kirupa.com/t/complex-rollover-buttons-problems-linking-to-root-timeline/147437 "2005-05-10T16:45:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![InnellaDesign](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@InnellaDesign](https://forum.kirupa.com/u/InnellaDesign)\
**Post date:** [May 10, 2005, 4:45pm UTC](https://forum.kirupa.com/t/complex-rollover-buttons-problems-linking-to-root-timeline/147437/1 "2005-05-10T16:45:59Z")

</div>

I’ve used this tutorial [http://kirupa.com/developer/mx2004/button\_effect.htm](http://kirupa.com/developer/mx2004/button_effect.htm)(very helpful!) to make a complex rollover button. Problem is, I want to link back to my root timeline, to a labeled frame, not to an external URL. I used this code:

stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};  
this.onRollOver = function() {  
rewind = false;  
play();  
};  
this.onRollOut = function() {  
rewind = true;  
};  
this.onRelease = function() {  
root.gotoAndStop(“1”);  
};

(my frame is labeld 1) but when I test it, the complex rollover works, but when I click, it just jumps back to the beginning of my movie! I’m positive the code is not set to _frame_ 1, but _label_ 1. Any ideas?? I have about 28 buttons i’d really like to be able to link back to the root timeline, so if anyone can help, i’ll be forever grateful!
