basically, the following is the actionscript I'm using to call the getURL command...the commands are being extracted as attributes from an xml file. For some reason, even though I think that I'm doing this correctly, I can't seem to get it to work, any idea on how to fix this, or how to call the getURL function from outside of a button? I think there's something going on with the getURL function, because I believe I'm calling the xml attributes properly, or maybe it's how it's calling them in reference to the javascript? PLEH, anyways....the javascript function is the code below the following actionscript.
function launchFile(value) {
//compares the user's paramater to each of the idArray values
for (i=0; ((value != _root.invisDir.idArray[i]) && (i<_root.invisDir.idArray.length)); i++) {
null;
}
if (value != _root.invisDir.idArray[i]) {
_root.userInput.text = "Invalid Entry";
} else {
_root.getURL("javascript
:NewWindow('_root.invisDir .menuItem[i].attributes.url',
'_root.invisDir.menuItem[i].attributes.title',
'_root.invisDir.menuItem[i].attributes.width',
'_root.invisDir.menuItem[i].attributes.height','no')");
}
}
//javascript
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +'
,scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
any help you might provide would be greatly appreciated
[edit]
Even tho it appears that there's a space in "javascript" in the code there actually is none....