hope-to-hear-the-answer question.

I am trying to control flash from (javascript input) html button.
I have no clue whatsoever in javascript, and FScommand,( I checked but....??!!!?XOPOFS, didn't help me much. I am damn. I at the moment in a close deadline for a project, and stressed out. Nothing goes into my brain/crying/weeping/...) The example bellow copied from mook:
http://www.moock.org/webdesign/flash...and/index.html

somehow this doesn't work on IE. Can anybody correct the script? so that It would work on IE as well.

One more thing is, ...
In the example, the function works within the same browser, but what I really want is that first there is only one browser with three buttons. When you press button "A", another browser pops up, and there is flash with a target frame "A". This flash supposedly embeded in html.

I am hopeless... (cry) please someone help me out!!!!!! please. (weeping...)

I really appreciate this forum for the last weeks. I don't know what to say for those of you who helped me out. thank YOU!!!!!It was nice to contact with someone who is absolutely kind and helpful like some of you.

peace!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<HTML>
<HEAD>
<TITLE>moock&gt;&gt; web&gt;&gt; flash&gt;&gt; fs command&gt;&gt; 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="clsid27CDB6E-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="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="SCALE" VALUE="SHOWALL">


<EMBED
NAME="testcommand"
SRC="javascript-to-flash.swf"
WIDTH="400"
HEIGHT="300"
PLAY="false"
LOOP="false"
QUALITY="high"
SCALE="SHOWALL"
swLiveConnect="true"
PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">
</EMBED>
</OBJECT>

<FORM>
<INPUT TYPE="BUTTON" VALUE="Play" ONCLICK="playmovie()">
<INPUT TYPE="BUTTON" VALUE="Stop" ONCLICK="stopmovie()">
<INPUT TYPE="BUTTON" VALUE="Goto Frame 3" ONCLICK="go(2)">
<INPUT TYPE="BUTTON" VALUE="Goto Label: redframe" ONCLICK="golabel()">
</FORM>

</CENTER>

</BODY>
</HTML>