<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>I have a problem: Flash FSCommand() does not work when I use SWFObject to 
load my Flash movie.</DIV>
<DIV> </DIV>
<DIV>I have included my code in two(2) parts:  First is the JavaScript I 
use to load my movie; second, is JavaScript is use for the FSCommand - this is 
the standard script generated by my Flash editor.</DIV>
<DIV> </DIV>
<DIV>When I run using the <object> . . . </object> my FSCommand() 
work with the html just fine.</DIV>
<DIV>However; when I mark the <object>. . .</object> as a 
comment and use SWFObject, FSCommand() does not work.</DIV>
<DIV> </DIV>
<DIV>Do I need any special parameters with SWFObject to make the FSCommand() 
work?</DIV>
<DIV>What do I need to do to use both SWFObject and FSCommand()?</DIV>
<DIV> </DIV>
<DIV>Be of good cheer,</DIV>
<DIV>Charles</DIV>
<DIV> </DIV>
<DIV>This script is in the <head>. 
<HR>
</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT face="Courier New" color=#0000ff size=2><script 
  language="JavaScript"><BR><!-- /* flash object/embed workaround 
  */</FONT></DIV>
  <DIV><FONT face="Courier New" color=#0000ff size=2></FONT> </DIV>
  <DIV><FONT face="Courier New" color=#0000ff size=2> function 
  setFlashMovie(movieSrc, movieID, movieWidth, movieHeight, flashVersion, 
  movieBgColor, 
  flashContent){<BR>  this.movieSrc     = 
  movieSrc;<BR>  this.movieName    = 
  movieID;<BR>  this.movieWidth   = 
  movieWidth;<BR>  this.movieHeight  = 
  movieHeight;<BR>  this.flashVersion = 
  flashVersion;<BR>  this.movieBgColor = 
  movieBgColor;<BR>  this.flashContent = flashContent;<BR> } 
  </FONT></DIV>
  <DIV><FONT face="Courier New" color=#0000ff size=2></FONT> </DIV>
  <DIV><FONT face="Courier New" color=#0000ff size=2> var flashMovie = new 
  Array();</FONT></DIV>
  <DIV><FONT face="Courier New" color=#0000ff size=2></FONT> </DIV>
  <DIV><FONT color=#0000ff><FONT face="Courier New"><FONT 
  size=2>  flashMovie["mastHead"] = new 
  setFlashMovie("mastheadWelcome.swf", "myMovie", "770", "100", "5", "#F1F1E3", 
  "masthead");<BR>// <STRONG>. . .</STRONG></FONT></FONT></FONT></DIV>
  <DIV><FONT face="Courier New" color=#0000ff size=2> function 
  setFlashObject(n){</FONT></DIV><FONT color=#0000ff>
  <DIV><BR><FONT face="Courier New" size=2>  </FONT><FONT 
  face="Courier New"><FONT size=2><STRONG>var fo = new 
  SWFObject(flashMovie[n].movieSrc, flashMovie[n].movieID, 
  flashMovie[n].movieWidth, flashMovie[n].movieHeight, 
  flashMovie[n].flashVersion, 
  flashMovie[n].movieBgColor);<BR>  fo.addParam("quality", 
  "best");<BR>  fo.addParam("wmode", 
  "transparent");<BR>  fo.write(flashMovie[n].flashContent);<BR></STRONG> }</FONT></FONT></DIV>
  <DIV><FONT face="Courier New" size=2></FONT> </DIV>
  <DIV>--></DIV>
  <DIV><FONT face="Courier New" 
size=2></script></FONT></FONT></DIV></BLOCKQUOTE>
<HR>
This script and html are in the <body>. 
<BLOCKQUOTE>
  <DIV><FONT face="Courier New" color=#0000ff size=2><script 
  language=JavaScript><BR><!--<BR>var InternetExplorer = 
  navigator.appName.indexOf("Microsoft") != -1;</FONT></DIV><FONT color=#0000ff>
  <DIV><BR><FONT face="Courier New" size=2>function myMovie_DoFSCommand(command, 
  args) {<BR>  var myMovieObj = InternetExplorer ? myMovie : 
  document.myMovie;<BR> if(command == 
  "TopMenuButton")TopMenuButton(args);<BR>}</FONT></DIV>
  <DIV><BR><FONT face="Courier New" size=2>if (navigator.appName && 
  navigator.appName.indexOf("Microsoft") != -1 && <BR>   
  navigator.userAgent.indexOf("Windows") != -1 && 
  navigator.userAgent.indexOf("Windows 3.1") == -1) 
  {<BR> document.write('<script language=VBScript\> 
  \n');<BR> document.write('on error resume next 
  \n');<BR> document.write('Sub myMovie_FSCommand(ByVal command, ByVal 
  args)\n');<BR> document.write('  call myMovie_DoFSCommand(command, 
  args)\n');<BR> document.write('end 
  sub\n');<BR> document.write('</script\> 
  \n');<BR>}<BR>//--><BR></script></FONT></DIV>
  <DIV><FONT face="Courier New" size=2></FONT> </DIV>
  <DIV><FONT face="Courier New" color=#800000 size=2><div id="masthead" 
  name="masthead" style="position:absolute; width:770px; height: 100px; 
  z-index:100; left: 0px; top: 0px; visibility: visible"></FONT></DIV>
  <DIV><FONT face="Courier New" color=#800000 size=2>&nbsp;</FONT></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face="Courier New" color=#008000 size=2><!--</FONT></DIV>
    <DIV><FONT face="Courier New" color=#008000 size=2><object 
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
    codebase="</FONT><A 
    href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"><FONT 
    face="Courier New" color=#008000 
    size=2>http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0</FONT></A><FONT 
    face="Courier New" color=#008000 size=2>"  id=myMovie width=770 
    height=100><BR> <param name=movie 
    value="../Flash/mastheadWelcome.swf"><BR> <param name=quality 
    value=high><BR> <param name=wmode 
    value=transparent><BR> <param name=bgcolor 
    value=#E9E9DB><BR> <embed src="../Flash/mastheadWelcome.swf" 
    quality=high wmode=transparent bgcolor=#F1F1E3  width=770 height=100 
    swliveconnect=true name=myMovie type="application/x-shockwave-flash" 
    pluginspage="</FONT><A 
    href='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object'><FONT 
    face="Courier New" color=#008000 
    size=2>http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object</FONT></A><FONT 
    face="Courier New" color=#008000 size=2>></FONT></DIV>
    <DIV><FONT face="Courier New" color=#008000 
  size=2>--></FONT></DIV></BLOCKQUOTE>
  <DIV></FONT><FONT face="Courier New" color=#800000 
  size=2></div></FONT></DIV></BLOCKQUOTE></BODY></HTML>