DMXzone Lightbox Support Product Page

This topic was archived

Creating a

Asked 16 Oct 2009 18:17:29
1
has this question
16 Oct 2009 18:17:29 Ben Adams posted:
Hi there,

I've integrated lightbox into a site i working on - with no issues at all - however we're loading a swf file into the window and would like to be able to click on a button from the flash movie as well as the standard "close button".

I've managed similar using another lightbox - and have tried t set up and call a javascript function from the flash movie using a


getURL("javascript:DMX.Lightbox.instance.close();");



or
getURL("javascript:closelight()");



having put


<script type="text/javascript">
function closelight()
{
DMX.Lightbox.instance.close(); 
}
</script>



into my head tag...

And ideas/direction you could provide?

Cheers

Ben

Replies

Replied 20 Oct 2009 12:00:22
20 Oct 2009 12:00:22 Miroslav Zografski replied:
Hello Ben,

There is already defined behavior for closing Lightbox.
You will find it in Tag inspector panel - > behaviors - > DMXzone - > DMXzone Lightbox - > Control DMXzone Lightbox.

Assign it to a link or a button into the lightbox referring the parent or wherever you like with setting that you like. Copy the javascript statement in onclick attribute and place it in your AS externalFunciton call.

Regards,

Reply to this topic