-
fscommand and firefox2 major problem.....
I'm using flash cs3 and actionscript 3 (also tried with as2 with same results) and the fscommand works perfectly in safari and IE, but in firefox, the flash movie is tiny and shoved up in the top of the browser window rather than filling it.
Please, can someone offer solution! Firefox blame Adobe, Adobe don't seem to recognize there's a problem and I'm stuck in the middle!
I used the Flash with FSCommand option in publish/templates, and here's the html/js code it created:
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function ghosttownteaser_DoFSCommand(command, args) {
var ghosttownteaserObj = isInternetExplorer ? document.all.ghosttownteaser : document.ghosttownteaser;
//
// Place your code here.
//
}
// 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 ghosttownteaser_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call ghosttownteaser_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>
-
OOP is one letter from OOPS
Have you tried using external interface? And just as a curiosity question, why are you using JavaScript to write out VBScript?
-
thanks for your response. I have no idea what you mean by external interface.
I used the fscommand from within the flash cs3 publish window - no coding was done by me, flash did it all.
-
OOP is one letter from OOPS
Package flash.external
Class public final class ExternalInterface
Inheritance ExternalInterface Inheritance Object
Language Version : ActionScript 3.0
Player Version : Flash Player 9
The ExternalInterface class is the External API, an application programming interface that enables straightforward communication between ActionScript and the Flash Player container– for example, an HTML page with JavaScript. Adobe recommends using ExternalInterface for all JavaScript-ActionScript communication.
You can call an ActionScript function in Flash Player, using JavaScript in the HTML page. The ActionScript function can return a value, and JavaScript receives it immediately as the return value of the call.
This functionality replaces the fscommand() method.
Use the ExternalInterface class in the following combinations of browser and operating system:
Browser Operating System Operating System
Internet Explorer 5.0 and later Windows
Netscape 8.0 and later Windows MacOS
Mozilla 1.7.5 and later Windows MacOS
Firefox 1.0 and later Windows MacOS
Safari 1.3 and later MacOS
See: http://livedocs.adobe.com/flash/9.0/...Interface.html
-
I've got it figured.....
http://www.ghosttownthemovie.com/
don't use the flash with fscommand option, use the "flash only allow full screen" template in the flash publish settings, and it works.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|