The pertinent code to manually laucnhing Lightbox from within Flash is this:
Code:
Button.onRelease = function() {
getURL("javascript:LightboxDelegate('images/image.jpg','Image Caption')");
}
You would need to change the highlighted above. Button refers to the instance name of the button/movieclip in question. The code above is to be added to frame in the timeline.
You also need to add the following JavaScript to your HTML page:
Code:
<script type="text/javascript">
function LightboxDelegate(url,caption) {
var objLink = document.createElement('a');
objLink.setAttribute('href',url);
objLink.setAttribute('rel','lightbox');
objLink.setAttribute('title',caption);
Lightbox.prototype.start(objLink);
}
</script>
Bookmarks