# Trigger show/hide multiple div layers from flash movie

**URL:** <https://forum.kirupa.com/t/trigger-show-hide-multiple-div-layers-from-flash-movie/244482>\
**Category:** flash\
**Created:** [November 19, 2007, 12:12am UTC](https://forum.kirupa.com/t/trigger-show-hide-multiple-div-layers-from-flash-movie/244482 "2007-11-19T00:12:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![basscadet](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@basscadet](https://forum.kirupa.com/u/basscadet)\
**Post date:** [November 19, 2007, 12:12am UTC](https://forum.kirupa.com/t/trigger-show-hide-multiple-div-layers-from-flash-movie/244482/1 "2007-11-19T00:12:17Z")

</div>

Hello,  
I need to show and hide multiple DIV layers by clicking on buttons inside an embedded flash movie. I looked around and the closest I got was this tutorial here:

[http://www.bestflashanimationsite.com/tutorials/1/](http://www.bestflashanimationsite.com/tutorials/1/)

but the problem is I need 10 buttons to each show one layer while hiding the other ones. For example, I click button 1, layer 1 shows, then I click on button 5, layer 1 is hidden and layer 5 shows etc.

How can the above code be split so instead of showing all DIV layers at once, it shows one and hides the rest??? If anyone has any suggestion it would help tons. Thanks.

---

<div class="post-metadata">

**Author:** ![Akira\_Creations](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@Akira\_Creations](https://forum.kirupa.com/u/Akira_Creations)\
**Post date:** [May 29, 2008, 1:11pm UTC](https://forum.kirupa.com/t/trigger-show-hide-multiple-div-layers-from-flash-movie/244482/2 "2008-05-29T13:11:38Z")

</div>

try this:

[http://www.afcomponents.com/forum/viewtopic.php?t=2906](http://www.afcomponents.com/forum/viewtopic.php?t=2906)

---

<div class="post-metadata">

**Author:** ![Akira\_Creations](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@Akira\_Creations](https://forum.kirupa.com/u/Akira_Creations)\
**Post date:** [May 29, 2008, 1:37pm UTC](https://forum.kirupa.com/t/trigger-show-hide-multiple-div-layers-from-flash-movie/244482/3 "2008-05-29T13:37:29Z")

</div>

Not the whole code, but it is somewhat similar
