I'm trying make my movies work with Netscape 7.
To this end, I've created an incredibly simple looping swf.
In my <object> tag, I've told the player not to play the movie automatically when it loads.
My next step is to have Javascript use the play() method to start the movie. I'm assuming that if I can do this, everything else will fall into place.
The behavior that I'm seeing is that the object objFlash is assigned the object, put the play() call makesNS grumble, "objFlash.play is not a function".
Any help would make me very happy.
Here's my code (all of it):
<HTML><!--Loads a Flash movie with play=false, then plays it using javascript-->
<HEAD>
<TITLE>AAARRRGGHH!!!!</TITLE>
<script language = "javascript">
objFlash = new Object;
function init() {
objFlash = document.myFlash;
alert(objFlash);
objFlash.play();
}
</script>
</HEAD>
<BODY bgcolor="#FFFFFF">
<object type="application/x-shockwave-flash" data="testmov.swf" width="366" height="142" id="myFlash">
<param name="play" value="false">
<param name="swliveconnect" value="true">
<script language = "javascript">
init();
</script>
</BODY>
</HTML>
To this end, I've created an incredibly simple looping swf.
In my <object> tag, I've told the player not to play the movie automatically when it loads.
My next step is to have Javascript use the play() method to start the movie. I'm assuming that if I can do this, everything else will fall into place.
The behavior that I'm seeing is that the object objFlash is assigned the object, put the play() call makesNS grumble, "objFlash.play is not a function".
Any help would make me very happy.
Here's my code (all of it):
<HTML><!--Loads a Flash movie with play=false, then plays it using javascript-->
<HEAD>
<TITLE>AAARRRGGHH!!!!</TITLE>
<script language = "javascript">
objFlash = new Object;
function init() {
objFlash = document.myFlash;
alert(objFlash);
objFlash.play();
}
</script>
</HEAD>
<BODY bgcolor="#FFFFFF">
<object type="application/x-shockwave-flash" data="testmov.swf" width="366" height="142" id="myFlash">
<param name="play" value="false">
<param name="swliveconnect" value="true">
<script language = "javascript">
init();
</script>
</BODY>
</HTML>