Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: FS Command Bug? |
From: | Stephen Ingrum |
Date: | Wed, 2 Feb 2000 04:45:30 GMT |
I can't seem to get any FS Command to work in frame 1.
(what I really want is a Director-like on prepareMovie)
Basically, I have a sound loader swf file that needs to read
a cookie to find out whether the cookie has been set to audio=1
or audio=0.
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.
So, now I have to use (in frame 2)
FS Command ("checkcookie") // which just checks the cookie and tells the
flash file to advance to 1 of 2 different frames
goto (frame 1)
Why don't FS Commands work in frame 1?
to duplicate the problem
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.
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>
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: FS Command Bug?, Marc Hoffman, Poison Dart
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]