i am having a problem passing a variable in flash to a javascript function that calls lightbox based on the variable passed to it by flash.
the flash code is:
getURL(“javascript:show(” + w + “)”);
the javascript is:
function show(url) {
var a = document.getElementById(‘dummyanchor’);
a.setAttribute(‘href’,url);
myLightbox.start(a);
}
if i pass it a url, it works fine. when i use the variable i am getting a “invalid flag after regular expression” error.
Any help would be very much appreciated.
Thanks in advance.