Passing a url from javascript
morning,
i'm novice flash apologies if obvious!
basically, i'm trialling javascript button that, when clicked, produce popup window flash player embeded in it. i've had progress having problems passing url want...
my javascript reads:
function doublepopup()
{
var player = document.flvclipeditor;
if (player)
{
var url = "http://www.google.com";
player.doublepopup(url);
}
}
and actionscript reads:
public function doublepopup(url:string): void
{
if (player) {
if (externalinterface.available) {
externalinterface.call("window.open", url, "win", "height=200,width=300,toolbar=no,scrollbars=yes");
}
}
}
but when try pass url through, nothing happens.
however, if put url in directly (as below), bingo! pop appears! suggestions please?!
sorry, forgot paste direct code mentioned in:
public function doublepopup(url:string): void
{
if (player) {
if (externalinterface.available) {
externalinterface.call("window.open", "http://www.google.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
}
}
}
More discussions in ActionScript 3
adobe
Comments
Post a Comment