Is there a way to link a button in a swf to a java script. I'm trying to use the "lightbox" java script so that when a user clicks on an image in the swf, a larger image appears on top of the page. Here is what the link looks like in html:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
Can anyone tell me how to code this in Flash?
you can use the externalinterface class in flash to call js functions in the embedding html but, i don't see any js in the code you posted.
no, there is just the rel "lightbox" in the link that refers to the
js. When I try to include the rel in flash, I get an error. Please
understand I know very little about action script