# Menu Dilema

**URL:** https://forum.kirupa.com/t/menu-dilema/268698
**Category:** flash
**Created:** [August 17, 2008, 3:26pm UTC](https://forum.kirupa.com/t/menu-dilema/268698 "2008-08-17T15:26:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eL1](https://avatars.discourse-cdn.com/v4/letter/e/b9bd4f/32.png) [@eL1](https://forum.kirupa.com/u/eL1)
#### Post date: [August 17, 2008, 3:26pm UTC](https://forum.kirupa.com/t/menu-dilema/268698/1 "2008-08-17T15:26:28Z")

</div>

I am new to Actionscript and I am learning Actionscript by creating a website.  
I want to create a menu that has large buttons situated in the middle of the site.  
When you roll over one button the other buttons displace (or slide a few pixels away) while the original button expands.

I got so far as to getting the button to slide away, but it only worked when I rolled over the movie clip instance and not the button instance.

sq\_mc was the movie clip instance  
and sy\_mc was the button instance

When I replaced the movie clip instance (sq\_mc) into the code the other button slid fine, but the original button (sq\_mc) didn’t act as a button anymore, just a MC. So I put in the instance name for the button so that it would act as a button.

It did, but now the other button doesnt slide anymore.

sqq\_mc is the instance name for the movie clip that the other button is situated in.

[w/ MC instance]

> **[kirupaForum](http://forum.kirupa.com/)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

[COLOR=“DeepSkyBlue”]sq\_mc.onRollOver = function () {  
sqq\_mc.gotoAndPlay(2)

}

sq\_mc.onRollOut = function () {  
sqq\_mc.gotoAndPlay(6)

}

sqq\_mc.onRollOver = function () {  
sq\_mc.gotoAndPlay(2);  
}

sqq\_mc.onRollOut = function () {  
sq\_mc.gotoAndPlay(6);  
}[/COLOR]

[w/ Button instance]

> **[kirupaForum](http://forum.kirupa.com/)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

[COLOR=“Orange”]sy\_mc.onRollOver = function () {  
sqq\_mc.gotoAndPlay(2)

}

sy\_mc.onRollOut = function () {  
sqq\_mc.gotoAndPlay(6)

}

sqq\_mc.onRollOver = function () {  
sq\_mc.gotoAndPlay(2);  
}

sqq\_mc.onRollOut = function () {  
sq\_mc.gotoAndPlay(6);  
}[/COLOR]
