# Controlling div content with Flash

**URL:** https://forum.kirupa.com/t/controlling-div-content-with-flash/305932
**Category:** flash
**Created:** [March 5, 2010, 6:54pm UTC](https://forum.kirupa.com/t/controlling-div-content-with-flash/305932 "2010-03-05T18:54:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Range](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Range](https://forum.kirupa.com/u/Range)
#### Post date: [March 5, 2010, 6:54pm UTC](https://forum.kirupa.com/t/controlling-div-content-with-flash/305932/1 "2010-03-05T18:54:32Z")

</div>

I would like to implement a Flash menu, that when clicked on, changes the content within a specific \<div\> on the PHP page. However, I am having a hard time finding useful examples of this for a beginner.

Can someone please provide a working example of what would be placed in the html page, the javascript and the Flash document, using say, content within ‘s1’, ‘s2’ and ‘s3’? I only have access to AS2…

So for instance, how would I change \<div id=“s1”\>\</div\> to \<div id=“s2”\>\</div\> using a Flash button?

I hope this makes sense. Thanks!
