# Sticky/smart buttons problem

**URL:** <https://forum.kirupa.com/t/sticky-smart-buttons-problem/223931>\
**Category:** Uncategorized\
**Created:** [April 26, 2007, 9:58pm UTC](https://forum.kirupa.com/t/sticky-smart-buttons-problem/223931 "2007-04-26T21:58:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rf1017](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@rf1017](https://forum.kirupa.com/u/rf1017)\
**Post date:** [April 26, 2007, 9:58pm UTC](https://forum.kirupa.com/t/sticky-smart-buttons-problem/223931/1 "2007-04-26T21:58:54Z")

</div>

I’m missing something really simple here.

I’m tired of having noob buttons and want to use something more intelligent, I believe it’s called sticky button, or smart buttons i.e., the menu “knows” which section you’re in, and disables that button and changes it’s color, making it apparent where you’re at.

So I found a tutorial, but I’m stuck. Check out my source FLA, I’m just trying to load another .swf into a container, or empty movie clip.

[http://www.efcmusic.com/rob/sticky.zip](http://www.efcmusic.com/rob/sticky.zip)

This is on the button frame:

```auto
onClipEvent(load)
{
	page = 2;
}

```

This is on a frame within the button:

```auto
on (rollOver)
{
    if (_root.link != page) 
    {
        this.gotoAndPlay("over");
    }
}
on (releaseOutside, rollOut)
{
    if (_root.link != page) 
    {
        this.gotoAndPlay("out");
    }
}
on (release)
{
	_root["btn" + _root.link].gotoAndPlay("out");
	_root.link = page;
}

```

So where can I put my loadMovie stuff? :

```auto
btn1.onPress = function() {
	sections.loadMovie("testclip.swf");
}

```
