It's not impossible...it's quite possibe actually.
In fact, I'm planning to add a lightbox 2.0 and flash interaction on my website (i'm in the process or redesigning it and I keep changing the design every other day).
I'm going to assume that you have Lightbox setup in your document per the Lightbox documentation.
1) Insert the following "Delegate" somewhere between the head tags of your document:
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>
2) Add the correspoding linkage in your actionscript
Code:
PictureMC.onRelease = function() {
getURL("javascript:LightboxDelegate(image1.jpg','caption1')")
}
Disclaimer: I'm typing this directly into the forum so there might be sytax errors but it should work. Post back if you have any issues.
HTH
Bookmarks