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:
[CODE=actionscri pt]
on (release) {
import flash.external. ExternalInterfa ce;
ExternalInterfa ce.call("hideDi v", "operator") ;
}
[/CODE]
And the code in the html file:
[CODE=javascript]
<html>
<head>
<title>page title</title>
<script type="text/javascript">
function hideDiv(id)
{
document.getEle mentById(id).st yle.display = 'none';
}
</script>
</head>
<body>
<div id="operator">
</div>
</body>
</html>
[/CODE]
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!
=)
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:
[CODE=actionscri pt]
on (release) {
import flash.external. ExternalInterfa ce;
ExternalInterfa ce.call("hideDi v", "operator") ;
}
[/CODE]
And the code in the html file:
[CODE=javascript]
<html>
<head>
<title>page title</title>
<script type="text/javascript">
function hideDiv(id)
{
document.getEle mentById(id).st yle.display = 'none';
}
</script>
</head>
<body>
<div id="operator">
</div>
</body>
</html>
[/CODE]
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!
=)
Comment