Flasher Archive

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


Subject: FLASH: FS Command in Frame 1?
From: Stephen Ingrum
Date: Fri, 21 Jan 2000 20:53:01 GMT

I can't seem to get a FS Command to work in frame 1.
The work around was to put the Command in frame 2-
which works MOST of the time, but not always over a dial-up connection.

in frame 1:
FS Command ("alert", "This is frame 1")

in frame 2:
FS Command ("alert", "This is frame 2")

I only get the second alert panel- even local.
If I insert a frame (shifting 1 to 2, etc...), I get both panels.

This got me worrying about exactly WHEN the FS Command is available.
Do I need to hold my swf file until the browser *knows* that the FS Command
is ready?

Below is my HTML.



<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function test_DoFSCommand(command, args) {
var testObj = InternetExplorer ? test : document.test;
if (command=="alert"){
alert(args);
}
}
// 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 test_FSCommand(ByVal command, ByVal args)\n');
document.write(' call test_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
-- >
</SCRIPT>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
ID=test WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="test.swf"> <PARAM NAME=quality VALUE=high> <PARAM
NAME=bgcolor

VALUE=#FFFFFF> <EMBED src="test.swf" quality=high bgcolor=#FFFFFF WIDTH=550
HEIGHT=400

swLiveConnect=true
TYPE="application/x-shockwave-flash"

PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: the loading animation, Marc Hoffman, Poison Dart

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