Flash and Javascript

Hi Guys

I am calling a javascript function from inside flash:

getURL(“javascript:LightboxDelegate(‘evnt.target.d ata’,‘Poster one’)”);
Where ‘evnt.target.data’ is variable set in an xml file.

When I trace(evnt.target.data); I get data from the xml file correctly but the getURL is not replacing ‘evnt.target.data’ with its proper content so it is sending:

[COLOR=#22229c]http://www.wethnk.com/demo/focusmar/evnt.target.data[/COLOR] to the browser could someone please point out whats wrong with my syntax why it is being read as a string.

when I removed the quotes to read:

getURL(“javascript:LightboxDelegate(evnt.target.da ta,‘Poster one’)”);

I get a javascript error and the lightboxx ++ is not even triggered.

if you click the enter button though it triggers the lightbox++ but does not load anything as the its reading the evnt.target.data as the end of the url rather than the image.

see what I mean here: [COLOR=#22229c]http://www.wethnk.com/demo/focusmar/[/COLOR]