# Problems with buttons in Flash CS4

**URL:** <https://forum.kirupa.com/t/problems-with-buttons-in-flash-cs4/284588>\
**Category:** flash\
**Created:** [March 20, 2009, 3:01pm UTC](https://forum.kirupa.com/t/problems-with-buttons-in-flash-cs4/284588 "2009-03-20T15:01:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nusphere](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nusphere](https://forum.kirupa.com/u/nusphere)\
**Post date:** [March 20, 2009, 3:01pm UTC](https://forum.kirupa.com/t/problems-with-buttons-in-flash-cs4/284588/1 "2009-03-20T15:01:58Z")

</div>

![](http://forum.kirupa.com/uploads/kirupa/5304/720007a028a20724.gif) **Problems with buttons in Flash CS4**  
Hello,

I’m having difficulty getting buttons to work conjunction with a sliding, X speed menu in Flash CS4 developed by Adam Khoury @ DevelopePHP:

[[COLOR=#0000ff]http://www.developphp.com/Flash\_tuts…speed\_menu.php[/COLOR]](http://www.developphp.com/Flash_tuts/AS3_x_speed_menu.php)

I have looked at tutorials showing how to add functions to buttons in Flash CS4, and although I feel frustrated that it’s not as straight forward as in older versions of flash I have buttons working in very simple movies sending the movie to different frames when a button is clicked. However when I try to add this kind of functionality to a button that is part of the x speed menu, I get problem after problem. I have a very rough prototype up without any interactivity on the buttons atm:  
[URL=“[http://www.nusphere.co.uk/Glendale/galleryliquid.html](http://www.nusphere.co.uk/Glendale/galleryliquid.html)”]  
[COLOR=#0000ff][http://www.nusphere.co.uk/Glendale/galleryliquid.html[/COLOR]](http://www.nusphere.co.uk/Glendale/galleryliquid.html%5B/COLOR%5D)

Part of the reason for the problem is the X speed menu is a contains a movie which is made up of a strip of buttons and then the menu itself is a movie which is added to the main scene containing a set of buttons (so yeah I’ve got movie within movies). Althought the buttons have instance names attached to them the menu is, I believe, seen as one object within the main scene, so if I refer to the instance names in the main scene they are not recognised. If I add the code for the buttons in the separate movie that does not work either, I have also created a string od instance names the refir to the movie and its components. I have tried every possible configuaration that I can think of and get differing problems whichever avenue I try out. ![](http://forum.kirupa.com/uploads/kirupa/5305/70f532de0642d4f9.gif)

If anyone has any idea how to resolve this problem I would be truly gratefull.

Thanks in advance,

Dave ![](http://forum.kirupa.com/uploads/kirupa/5306/a7bb15b38626b067.gif)
