# Lightbox with flash variables problem

**URL:** <https://forum.kirupa.com/t/lightbox-with-flash-variables-problem/231681>\
**Category:** Uncategorized\
**Created:** [July 6, 2007, 4:45pm UTC](https://forum.kirupa.com/t/lightbox-with-flash-variables-problem/231681 "2007-07-06T16:45:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![25mgHaldol](https://avatars.discourse-cdn.com/v4/letter/2/65b543/32.png) [@25mgHaldol](https://forum.kirupa.com/u/25mgHaldol)\
**Post date:** [July 6, 2007, 4:45pm UTC](https://forum.kirupa.com/t/lightbox-with-flash-variables-problem/231681/1 "2007-07-06T16:45:38Z")

</div>

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.
