Google Web after-hours

Contador en flash JSFL Traductor

Este método para llamar a javaScript, mejora la función statusBar function evitando el molesto ‘clic’ que se produce al pasar el cursor sobre el enlace. Recordemos que la función, modifica la barra de estado del navegador. Afortunadamente cuando un usuario comentó el ‘problema’ recordé el uso de fscommand para hacer llamadas a javaScript, trás una rápida consulta, este es el resultado.

Pelí cula Flash

statusBar = function (msg) {
	fscommand("show_status", msg);
};
btn_mc.onRollOver = function() {
	statusBar("Has hecho rollOver sobre "+this._name);
};
btn_mc.onRollOut = function() {
	statusBar("");
};

Documento HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>function show status</TITLE>
<SCRIPT LANGUAGE="JavaScript">
 <!--
function testmovie_DoFSCommand(command, args) {
 if (command == "show_status") {
 self.status=args;
 }
 }
//-->
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
<!--
// Coge el fscommand en el IE con vbscript,
// y lo pasa a javascript Javascript
Sub testmovie_FSCommand(ByVal command, ByVal args)
 call testmovie_DoFSCommand(command, args)
 end sub
//-->
 </SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
 <OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="550"
HEIGHT="100"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
ID=testmovie>
<PARAM NAME="MOVIE" VALUE="status_function.swf">
<PARAM NAME="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="SCALE" VALUE="exactfit">
<param name="menu" value="false">
<EMBED
SRC="status_function.swf"
WIDTH="550"
HEIGHT="100"
LOOP="false"
NAME="testmovie"
PLAY="false"
QUALITY="high"
SCALE="exactfit"
swLiveConnect="true"
PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/" menu="false">
</EMBED> </OBJECT>
</BODY>
</HTML>

Enlaces relacionados

http://www.moock.org/webdesign/flash/fscommand/
http://www.macromedia.com/support/flash/ts/documents/tn4160.html

Ver ejemplo

http://www.after-hours.org/blog/as/status_function/status_function.htm

Descargar archivos

http://www.after-hours.org/blog/as/status_function.zip (376 hits)

2 Responses to 'statusBar function fscommand'

  1. Hector Centeno Says:

    vaya, perfecto, creo que habra muchos links hacia este post en poco tiempo…

  2. NEO_JP Says:

    Eso es algo que pense hace ya tiempo, pero hay un problema.
    Ese JavaScript solo funciona en Internet Explorer :sad:

    Por lo tanto, solo funcionará en windows, ya que en linux no existe el IE, y si existiera dudo mucho que lo usen. En Mac OS sucede lo mismo.

    Saludos.