Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Flash and JavaScript teamwork |
From: | Rudy de Belgeonne |
Date: | Mon, 6 Jul 1998 19:05:39 +0100 |
It's still early days for me with Flash. I'm trying to get to
grips with controlling movies through JavaScript.
Could anyone tell me what I'm doing wrong in the code below?
Two things in particular:
1. Why does the <PARAM NAME="Play" VALUE="False"> line not
prevent the movie from playing on loading the page?
2. Why do my buttons controlling the Play() and StopPlay methods
sometimes work and other times result in a "window.document.goodmovie
has no properties" JavaScript error? (I'm developing solely for
Netscape 4.04)
<HTML>
<HEAD>
<TITLE>Flash Test</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT 1.2">
</SCRIPT>
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
ID="goodmovie"
WIDTH=800 HEIGHT=600
CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=2
,0,0,11">
<PARAM NAME="goodmovie2"
VALUE="goodmovie2.swf">
<PARAM NAME="Play" VALUE="False">
<EMBED NAME="goodmovie"
MAYSCRIPT SRC="goodmovie2.swf"
WIDTH=800 HEIGHT=600
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_P
rod_Version=ShockwaveFlash">
</OBJECT>
<form>
<input type="button" value="Play Flash"
onClick="window.document.goodmovie.Play()">
<input type="button" value="Stop Flash"
onClick="window.document.goodmovie.StopPlay()">
</form>
</BODY>
</HTML>
Thanks in advance
Rudy
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managershocker [dot] com. Problems to: ownershocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-managershocker [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]