Skip to main content
Inspiring
April 27, 2006
Answered

moviename_DoFSCommand

I have a webpage up with this function:

<script language=javascript>
function UI3_DoFSCommand( command, args ) {
if(command == "window")
{
alert(args);
window.open( args , "_blank", "menubar=0,resizable=0,width=800,height=800" );
}
}
</script>

My question is, on the declaration am I doing it incorrectly? It says in the Flash help that "where moviename is the name of Flash Player as assigned by the NAME attribute of the EMBED tag or the ID attribute of the OBJECT tag". Here are my html declarations:

<object classid="clsid: D27CDB6E-AE6D-..." codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="650" align="middle" id="UI3">


<embed src="UI3.swf" quality=high pluginspage=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" type="application/x-shockwave-flash" width="800" height="650" align="absmiddle" id="UI3">

From my JS function from above, I defined it like this: function UI3_DoFSCommand where I thought UI3 would be the movie name.

But, it never actually calls it so I think my html id or name tags are messed up. Any point in the right direction would be helpful, it may be something obvious. I am pretty new to all of this. Thanks in advance!
This topic is closed to new replies. Start a new post to keep the conversation going.
FlashForumNameCorrect answer
Inspiring
April 28, 2006
I am not sure why but adding both an id and name tag to the object/embed statements seemed to fix the issue. It did not seem to work if I had a name for both, an id for both or a mix for both but if I had an id for both AND a name for both it came out ok.

1 reply

FlashForumNameAuthorCorrect answer
Inspiring
April 28, 2006
I am not sure why but adding both an id and name tag to the object/embed statements seemed to fix the issue. It did not seem to work if I had a name for both, an id for both or a mix for both but if I had an id for both AND a name for both it came out ok.
Translate