The Public
08-04-2003, 08:29 AM
If anybody has any experience with Flash and Javascript, I could use some help. I'm trying to open a pop-up window from a Flash movie using fscommand(). The actionScript looks like this:
on (release) {
fscommand("openProject", "http://www.phase-space.com");
}
The javaScript in the html document looks like this:
function MaterialabSplash_DoFSCommand(command, args) { if (command == "openProject"){
var newSite = args; newWindow = window.open("newSite" , "new window", "height=540, width=630, statusbar");
newWindow.focus();
}
}
The fscommand should send the command and it's arguments (the URL) from the Flash movie to the javascript which should then open the window, but I keep getting an error that says I have an invalid argument on the line "newWindow = window ...."
on (release) {
fscommand("openProject", "http://www.phase-space.com");
}
The javaScript in the html document looks like this:
function MaterialabSplash_DoFSCommand(command, args) { if (command == "openProject"){
var newSite = args; newWindow = window.open("newSite" , "new window", "height=540, width=630, statusbar");
newWindow.focus();
}
}
The fscommand should send the command and it's arguments (the URL) from the Flash movie to the javascript which should then open the window, but I keep getting an error that says I have an invalid argument on the line "newWindow = window ...."