Calling JavaScript from Flash

Discussion in 'JavaScript' started by elkiwi, Jun 18, 2008.

  1. #1
    Hi, I'm using this code below to call a lightbox script from a flash file which works fine:

    getURL("javascript:Mediabox.open(\'http://www.mysite.com/reel08.flv\', \'Kaleidoscope\', \'mediabox[600 450]\');void(0)");
    Code (markup):
    But...

    I would like to use the variable below from the flash file to replace the hard coded URL:

    this._parent.abreLink
    Code (markup):
    "abreLink" contains a URL taken from an XML file but I don't know the syntax to use the variable in the getURL part.

    Would really appreciate any help.

    Thanks
     
    elkiwi, Jun 18, 2008 IP