I am currently redesigning my portfolio site, and I have created a section of code that will alter a window size depending on which section of the site you are on, now the code works fine as long as the buttons are all on the same section, I have added a movie clip that’s a popup menu, but as soon as I add that I can no longer call upon the buttons I have tried setting instance names as well as linking the buttons with no luck,

The code to call the buttons looks like

home.onRelease = function() {
bx1.moveXYR(181.3, 168, 254, 493);
bx2.moveXYR(148.8, 144.3, 300, 559);
mymenu.moveXYR(565.8, 393.6,17.9, 103);
home.moveXYR(628.3, 51.9, 16.1,46);
};

The home one is the only one that works, I need a way to link this code to buttons that appear on different movie clips

Thanks in advance for any help people can give.


Kehoe