I'm new at integrating Flash movies, so this is probably something basic, but I've tried everything.
1. I am loading this script (where 'logoanim' is the name of the movie, and the label for the embed name and object ID):
<!--
// F. Permadi May 2000
function getFlashMovieObject()
{
if (navigator.appName.indexOf("Microsoft Internet"
!=-1)
{
return window.logoanim;
}
else
{
return window.document.logoanim;
}
}
function PlayFlashMovie()
{
var flashMovie=getFlashMovieObject();
flashMovie.Play();
}
//-->
2. I am running an imagemap:
<area shape="rect" coords="1,1,10,10" href="#1A" onmouseout="javascript:change('')"
onmouseover="javascript:change('testtexthere')"
onClick="javascript
layFlashMovie()">
3. The actual movie is further down in a table cell:
<OBJECT classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=" ID=Logoanim WIDTH=400 HEIGHT=200>
<PARAM NAME=movie VALUE="Logoanim.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED play=false swliveconnect=true name=Logoanim src="Logoanim.swf" quality=high bgcolor=#FFFFFF WIDTH=400 HEIGHT=200 TYPE="application/x-shockwave-flash" PLUGINSPAGE="
4. The movie runs on load, even though I have play=false above. And when I click on the target, nothing happens. My error says 'undefined is not an object', of if I spec PlayFlashMovie(logoanim) (which I think I shouldn't have to do anyway, I get logoanim is not an object.
So, why doesn't my script recognize the movie, and what do I do to get it to work?
1. I am loading this script (where 'logoanim' is the name of the movie, and the label for the embed name and object ID):
<!--
// F. Permadi May 2000
function getFlashMovieObject()
{
if (navigator.appName.indexOf("Microsoft Internet"
{
return window.logoanim;
}
else
{
return window.document.logoanim;
}
}
function PlayFlashMovie()
{
var flashMovie=getFlashMovieObject();
flashMovie.Play();
}
//-->
2. I am running an imagemap:
<area shape="rect" coords="1,1,10,10" href="#1A" onmouseout="javascript:change('')"
onmouseover="javascript:change('testtexthere')"
onClick="javascript
3. The actual movie is further down in a table cell:
<OBJECT classid="clsid
codebase=" ID=Logoanim WIDTH=400 HEIGHT=200>
<PARAM NAME=movie VALUE="Logoanim.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED play=false swliveconnect=true name=Logoanim src="Logoanim.swf" quality=high bgcolor=#FFFFFF WIDTH=400 HEIGHT=200 TYPE="application/x-shockwave-flash" PLUGINSPAGE="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>4. The movie runs on load, even though I have play=false above. And when I click on the target, nothing happens. My error says 'undefined is not an object', of if I spec PlayFlashMovie(logoanim) (which I think I shouldn't have to do anyway, I get logoanim is not an object.
So, why doesn't my script recognize the movie, and what do I do to get it to work?