FLASH - FSCommand und Netscape
dirk*
- javascript
Hallo liebe Spezialisten,
Hab' da ein kleines Prob. Aus einem Flash-Movie soll extern ein definiertes weiteres Browserfenster geöffnet werden...
Nun gut mit FSCommand unter Flash kein Problem, unter Internet-Explorer funktioniert der untenstehende Code perfekt.
Jedoch reagiert Netscape auf keinen Tastendruck im Flash-Auswahlmenu.. was läuft falsch, glaub mein script ist richtig...zumindest für IExlorer
Habt schon mal vielen Dank
Gruss dirk*
----------------------------------------------------
SCRIPT:
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function arwandha_DoFSCommand(command, args) {
var arwandhaObj = InternetExplorer ? arwandha : document.arwandha;
//
if (command == "textbox"){
window.open('arwandha_txt.htm','','scrollbars=yes,width=400,height=300');
}
if (command == "zoom"){
window.open('arwandha\_zoom.htm','','');
}
if (command == "download"){
window.location.href="ftp://irgendwas.com/pub/arwandha_orig.jpg"
}
//
}
// 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 arwandha_FSCommand(ByVal command, ByVal args)\n');
document.write(' call arwandha_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT> \n');
}
//-->
</SCRIPT>
»» document.write('<SCRIPT LANGUAGE=VBScript> \n');
»» document.write('on error resume next \n');
»» document.write('Sub arwandha_FSCommand(ByVal command, ByVal args)\n');
»» document.write(' call arwandha_DoFSCommand(command, args)\n');
»» document.write('end sub\n');
»» document.write('</SCRIPT> \n');
Hallo Dirk,
Netscape "mag" kein VBScript!
Eine Alternative weiss ich auch nicht, aber geteiltes Leid ist halbes. Wir sind auch nicht weiter.
Der flash-support nannte uns folgenden Link:
http://www.moock.org/webdesign/flash/fscommand
Gruss, Thomas