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");
};
When you publish, publish to "Flash Player version 8".
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>
That's all, clicking on your flash button will now open highslide. An example can be seen here http://www.mx3design.co.uk/predesign.php (click on the 'VIEW DETAILS' button within the movie at top of page).
Thanks to m3xdesign for the tutorial.