<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">it should be ok... i've used fscommand with swfobject before, most notably in the js integration kit port i did.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>if you want to download the source to that and see how the fscommand works there, you can get it here:</DIV><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"><A href="http://blog.deconcept.com/code/intkit/">http://blog.deconcept.com/code/intkit/</A></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;">i use a different method of inserting the vbscript into the page, but that shouldn't really matter too much.</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;">i looked at your code, and i don't see anything wrong at first glance... as long as the id of the object tag matches the id in the fscommand you should be fine.</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On May 17, 2006, at 5:05 PM, Charles wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <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> </FONT><DIV><FONT color="#0000ff"><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"> </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"><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> </FONT><DIV><FONT color="#0000ff"></FONT><FONT face="Courier New" color="#800000" size="2"></div></FONT></DIV></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SWFObject mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>