I have a project building an expandable web banner and I'm having trouble with using Flash's external interface call.
What I'm trying to do is initiate a jQuery function on my HTML page by clicking a button inside of my .swf banner.
The jQuery function simply expands a to reveal another .swf file.
---This is the jQuery code in the head of my HTML page---
<script type="text/javascript">
$(document).ready
(function()
{
$(".contentBox").hide();
$(".bannerBox").click
(function expand()
{
$(".contentBox").slideToggle();
}
);
}
);
</script>
---This is my actionscript code---
clickMe.addEventListener(MouseEvent.CLICK,fnMouseOn);
function fnMouseOn(e:MouseEvent):void
{
ExternalInterface.call('expand()')
}
Sorry if this question has already been answered elsewhere and I haven't understood, I've been searching for a solution for a few hours now and I haven't been able to figure it out.
Any help appreciated :-)