# Pass js call from flash

**URL:** <https://forum.kirupa.com/t/pass-js-call-from-flash/209341>\
**Category:** Uncategorized\
**Created:** [December 7, 2006, 8:48pm UTC](https://forum.kirupa.com/t/pass-js-call-from-flash/209341 "2006-12-07T20:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jacob](https://forum.kirupa.com/u/jacob)\
**Post date:** [December 7, 2006, 8:48pm UTC](https://forum.kirupa.com/t/pass-js-call-from-flash/209341/1 "2006-12-07T20:48:13Z")

</div>

I have an html doc  
with 2 flash files that are buttons  
and 2 flash files that are contained in hidden divs.

I want to show/hide the content divs respectively with:  
showDiv(contact-panel)  
and  
showDiv(info-panel)

but this needs to be done from within the flash buttons. why are they flash buttons? because they animate when the page loads and go into position. why isn’t the whole page simply in flash? its complicated, but its better this way.

So. I would really appreciate if someone could tell me how to code the MC buttons within flash so that the js functions are called correctly.

or another idea would be great too.
