Amigos tengo el siguiente deilema
En HTMl tengo que lograr que, cuando hago un clic sobre un item de un menu colocado en un marco, en otro marco un swf pare de correr
Lo he logrado en un mismo marco y el codigo es el siguiente:
Gracias
--------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>moock>> web>> flash>> fs command>> javascript to flash</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
var movieName = "testcommand";
function thisMovie(movieName) {
// IE and Netscape refer to the movie object differently.
// This function returns the appropriate syntax depending on the browser.
if (navigator.appName.indexOf ("Microsoft") !=-1) {
return window[movieName]
} else {
return document[movieName]
}
}
// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != "undefined") {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
//------------------------------------------------------------------------------------------------
function playmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).Play();
}
}
function stopmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).StopPlay();
}
}
function go(theFrame) {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).GotoFrame(theFrame);
}
}
function golabel() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).TGotoLabel("_level0/","redframe");
}
}
//------------------------------------------------------------------------------------------------
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<DIV ALIGN="CENTER">
<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="400"
HEIGHT="300"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
ID=testcommand>
<!-- <PARAM NAME="MOVIE" VALUE="javascript-to-flash.swf"> -->
<PARAM NAME="MOVIE" VALUE="PRUEBA-1 FIGURA_ 30 STOP_60 BANDERA.swf">
<PARAM NAME="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="SCALE" VALUE="SHOWALL">
<EMBED
NAME="testcommand"
SRC="PRUEBA-1 FIGURA_ 30 STOP_60 BANDERA.swf"
WIDTH="400"
HEIGHT="300"
PLAY="false"
LOOP="false"
QUALITY="high"
SCALE="SHOWALL"
swLiveConnect="true"
PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">
</EMBED>
</OBJECT>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="311" height="142">
<param name="movie" value="PRUEBA-1 FIGURA_ 30 STOP_60 BANDERA.swf">
<param name="quality" value="high">
<embed src="PRUEBA-1 FIGURA_ 30 STOP_60 BANDERA.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="311" height="142"></embed>
</object>
<FORM>
<INPUT TYPE="BUTTON" VALUE="Play" ONCLICK="playmovie()">
<INPUT TYPE="BUTTON" VALUE="Stop" ONCLICK="stopmovie()">
<INPUT TYPE="BUTTON" VALUE="Goto Frame 30" ONCLICK="go(5)">
<INPUT TYPE="BUTTON" VALUE="Goto Label: redframe" ONCLICK="golabel()">
</FORM>
</CENTER>
</BODY>
</HTML>
------------------------------------------------------------------------
Agradezco su ayuda