I'm looking where to define the "ID" of my swf movie. I used flash to publish a SWF file as an html file, then I added around it, and I'm trying to use Actionscripts ExternalInterface class to have my HTML buttons send functions to my movie, but it's so crowded with other miscellaneous stuff from publishing, that I don't know where to start looking.

I put in bold where I'm trying to have my buttons send a function. to make it easier to read I just put all the original javascript that comes when it's published in a separate .js file. I don't think any of that has to do with finding the id of the swf but if you need it I can post that up too.


<title>Preload Home</title>
<script language="JavaScript" type="text/javascript" src="Scripts/FLASH.js"></script>
<link href="Willow Salon.css" rel="stylesheet" type="text/css">
</head>
<body background="Images/Wall Paper/Floral opaque brown.jpg">
<div id="Container">
<div id="logo"><img src="Images/Salon/Willow_black_deco.png" width="328" height="171" alt="Willow Salon Deco" /></div>
<div id="Head">
<div id="HeadButtons">

<ul id="nav">
<li id="nav_home"><a href="index.html" id="homeLink" onClick="document.getElementById('willow').home(); return false;">Home</a></li>
<li id="nav_about"><a href="Pages/about.html" id="aboutLink" onClick="document.getElementById('willow').about(); return false;">About</a></li>
<li id="nav_services"><a href="Pages/services.html" id="servicesLink" onClick="document.getElementById('willow').services(); return false;">Services</a></li>
<li id="nav_blog"><a href="blog.html" id="blogLink">Blog</a></li>

</ul>

</div>
</div>
<div id="movie">
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '600',
'height', '625',
'src', 'Preload Home',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'willow',
'bgcolor', '#ac8b77',
'name', 'willow',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'Preload Home',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" name="willow" width="600" height="625" align="middle" id="willow">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Preload Home.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ac8b77" /> <embed src="Preload Home.swf" quality="high" bgcolor="#ac8b77" width="600" height="625" name="willow" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</div>
<input type="button" onClick="document.getElementById('willow').about()" value="****" />

</div>

</body>