Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: FS Command doesn't work on netscape
From: Ricardo Sta. Rita
Date: Mon, 4 Dec 2000 18:04:14 GMT

I am doing a flash movie that has a button which opens up a pop-up window
when clicked.
I published my movie as "Flash with FS Command" and used Javascript to do
that
and it works fine with Internet Explorer... but it doesn't work in Netscape.
here's the code:
-----------------------------
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function smmalls_DoFSCommand(command, args) {
var smmallsObj = InternetExplorer ? smmalls : document.smmalls;
if (command == "openwindow"){
window.open('map.html','map','scrollbars =
yes','width=700,height=400');
}
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 &&
navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub smmalls_FSCommand(ByVal command, ByVal args)\n');
document.write(' call smmalls_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>

-----------------------------------
Anybody knows how i can make it work??? or if there is any easier way to do
it???



thnx in advance,
Ricardo Sta. Rita



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]