# Problems linking to frames with movie

**URL:** <https://forum.kirupa.com/t/problems-linking-to-frames-with-movie/202990>\
**Category:** flash\
**Created:** [October 6, 2006, 11:56am UTC](https://forum.kirupa.com/t/problems-linking-to-frames-with-movie/202990 "2006-10-06T11:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chalfont](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Chalfont](https://forum.kirupa.com/u/Chalfont)\
**Post date:** [October 6, 2006, 11:56am UTC](https://forum.kirupa.com/t/problems-linking-to-frames-with-movie/202990/1 "2006-10-06T11:56:02Z")

</div>

Hi all, can anyone help me?

Please excuse my novice problems but I am really quite stuck. I am building a site and have developed some animated buttons using a kirupa tutorial. These work brilliantly and I have made them on release link to frame names. The problem is that I have replicated the same type of animated button within a movie clip on the screen. The animated buttons within the movie clip do not gotoandplay the frame name like the ones on the main timeline. I can’t seem to understand why they work on the main timeline but not within a movie clip time line.

The actionscript code that works on the main timeline buttons but not buttons in the movie clips is:

stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;  
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){  
\_root.gotoAndPlay(“apartments”);

```
}

```

I am so grateful in advance if anyone can help me make these animated buttons work.

Kind regards,

Chalfont.
