1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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