PDA

View Full Version : multiple FScommands in javascript


toonman
04-19-2002, 12:03 AM
this pops up a page from within a flash movie (button action "FScommand:openWindow")

//code in the html page containing the .swf

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function main_DoFSCommand(command, args) {
var mainObj = InternetExplorer ? main : document.main;
//
{if(command=="openWindow"){ openNewWindow()}}
function openNewWindow(){setTimeout(
window.open('d:/work/flash/php/toonman.d2g.com/mail.html','newwindow','height=220,width=220,toolb ar=no')),0}

but i need to pop up another window from the same movie (diferent button)
how can i do this?
use another FScommand (like "openNewWindow")?
how does the code check for wich command was set?

tankx

tg
04-19-2002, 05:34 PM
if this runs in a browser, you don't really need fscommand, do a search on 'popup window' (search button is above) and you will find tons of possibilities... billyt even supplies the source code in about 10-40 different posts.