I want to use dyanamic url for getURL. i get the dynamic url from script.php via echo "url=$url"; The url reaches
the flash corectly since i checked it with trace.url. But the problem is that getURL does not load the url. Instead it loads localhost/undefined.Could any one look at this code and let me know how to fix it.Thanks
the flash corectly since i checked it with trace.url. But the problem is that getURL does not load the url. Instead it loads localhost/undefined.Could any one look at this code and let me know how to fix it.Thanks
Code:
myData = new LoadVars()
myData.ref = this
myData.load("[URL unfurl="true"]http://localhost/script.php")[/URL]
myData.onLoad = function(succes){
if(succes){
getURL ("javascript:NewWindow=window.open(this.url,'newWin','
width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
trace(this.url);
} else trace("Error loading data")
}
}