Trying to get a drop down hide/show div on a html page triggered by a button in flash.
(Intro: Very very Little experience in dynamic flash)
setup: html page, flash map on page, button on flash opens info underneath map in a separate div. div that has hide/show content is called "operator"
I found this code, but i'm not sure it's what I need, and it's not working...
Flash file>button on stage>script:
Expand|Select|Wrap|Line Numbers
- on (release) {
- import flash.external.ExternalInterface;
- ExternalInterface.call("hideDiv", "operator");
- }
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>page title</title>
- <script type="text/javascript">
- function hideDiv(id)
- {
- document.getElementById(id).style.display = 'none';
- }
- </script>
- </head>
- <body>
- <div id="operator">
- </div>
- </body>
- </html>
Any ideas would be muchly appreciated!
Thankyou so much in advance!
=)