FLASH:
Create a movieclip on your stage and give it an instance name, in this case it's 'btn_details'
In your ActionScript (version 2) layer add:
Code: Select all
import flash.external.ExternalInterface;
btn_details.onRelease = function () {
ExternalInterface.call("firehs");
};
In ActionScript version 3 this is done a little differently:
Code: Select all
import flash.external.ExternalInterface;
btn_details.addEventListener(MouseEvent.CLICK, launchhighslide);
function launchhighslide(event: MouseEvent) {
ExternalInterface.call("firehs");
}
HTML/JAVASCRIPT:
In the head section of your page add:
Code: Select all
<script type="text/javascript">
function firehs() {
hs.expand (null, { src: 'image.jpg' } );
}
</script>
Thanks to m3xdesign for the tutorial.