Launching from flash - variable as the path to flv?

2 messages Options
Embed this post
Permalink
rabmyself

Launching from flash - variable as the path to flv?

Reply Threaded More More options
Print post
Permalink
Hi There,

Im looking to use a variable as the path when I launch shadowbox from flash, but I cant seem to get it working, does anyone know how? The button code is...

on (release) {
        getURL("javascript:openshadowbox('_root.campaignVideoFlv', 'flv','title', '288', '512');", "_self");

}

where _root.campaignVideoFlv is the variable name. But I keep getting errors.  The code on the page is...

<script type="text/javascript">
function openshadowbox(content, player, title, height, width){
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title,
                height: height,
                width: width,
       
    });
}
</script>

Any help appreciated!
rabmyself

Re: Launching from flash - variable as the path to flv?

Reply Threaded More More options
Print post
Permalink
Managed to get it sorted, in case anyone else wants to know...

on (release) {
        getURL("javascript:openshadowbox('"+_root.campaignVideoFlv+"', 'flv','', '288', '512');", "_self");

}