FS Command



What is FSCommand :

FS Command is a new feature available on the navbars made at FlashButtons.com. FS Command will allow you to make custom JavaScript calls with the buttons in your navbar.

CAUTION : this feature is for advanced users.




Live Examples :

Here are a few examples of what you can do with the FS command :





How do you make it work :


First you need to adjust your HTML tag :

1. Add an ID to the OBJECT tag. This is done by adding the following code ( in yellow ) to your HTML tag :

<OBJECT id="navbar" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=4,0,2,0" width="660" height="18">
<PARAM NAME="movie" VALUE="YourNavbar.swf">
<PARAM NAME="quality" VALUE="high">
<PARAM NAME="menu" VALUE="true">
<EMBED src="YourNavbar.swf" quality="high" menu="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
width="660" height="18">
</EMBED>
</OBJECT>



2. Add an ID to the EMBED tag, and activate swLiveConnect. This is done by adding the following code ( in yellow ) to your HTML tag :

<OBJECT id="navbar" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=4,0,2,0" width="660" height="18">
<PARAM NAME="movie" VALUE="YourNavbar.swf">
<PARAM NAME="quality" VALUE="high">
<PARAM NAME="menu" VALUE="true">
<EMBED src="YourNavbar.swf" quality="high" menu="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
width="660" height="18" swLiveConnect="true" NAME="navbar">
</EMBED>
</OBJECT>



In steps 1 & 2 we've assigned the ID "navbar" to the Flash movie. This will be used later to connect the JavaScript with the Flash movie. Note that the HTML provided by the Advanced Member's Generator will have those changes already made.



Second you need to insert the JavaScript that will handle the buttons' actions :

The following JavaScript is made for 3 buttons. You can easely add more. Note that the following JavaScript will work ONLY with a Flash movie with a "navbar" ID assigned to it ( see steps 1 & 2 above ).


You can now insert your own JavaScript code in the "click", "over" and "out" sections of the code.




Browsers that support FS Command :

You need to be aware that not all browsers support fscommand. The specific browsers that support it are :

  • netscape 3 or 4 on win95/98/nt/xp and mac ppc
  • netscape 6.2 (and later) running flash player 6.0.40.0 (and later)
  • internet explorer 3 and greater on win95/98/nt/xp
The specific browsers that don't support fscommand() are :

  • those running on windows 3.1
  • those running on macintosh 68k machines
  • ie on any Mac
  • netscape 6.1 and 6.0 running flash player 6.0.29.0 or older (liveconnect is not supported for legacy plugins in mozilla. mozilla requires vendors to update their plugins to the new mozilla plugin api). see bugs 37710 and 18838.
Unsupported browsers lack the ActiveX (IE) or LiveConnect (Netscape 4 and older) required to communicate between the plugin and the browser. Further, starting with Flash 3.0, if you are developing fscommand Flash content for Netscape 4, you'll need to explicitly enable LiveConnect on every page that hosts a scripted Flash movie (you do not have to enable LiveConnect in Netscape 6.2 and later). To enable LiveConnect, include this attribute in your movie's EMBED tag: swLiveConnect="true". During the enabling process, users will see "Starting Java..." in the Netscape status bar, and will experience a delay (15 seconds is not uncommon) while Java loads.







All graphics and content are © All Rights Reserved- © 2001-05 FlashButtons.com