Hi All!
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:
-
on (release) {
-
import flash.external.ExternalInterface;
-
ExternalInterface.call("hideDiv", "operator");
-
}
-
And the code in the html file:
-
<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>
-
Does anyone have a better (working) way of getting a flash button to talk to the html page to *togggle* a hidden div?
Any ideas would be muchly appreciated!
Thankyou so much in advance!
=)