Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: Flash and JavaScript teamwork
From: Steve Couture
Date: Mon, 6 Jul 1998 19:58:22 +0100

First The <PARAM... > is used by InternetExplorer... You have to had some
code in your embeed...


Try this!!!

<EMBED NAME="goodmovie"
MAYSCRIPT SRC="goodmovie2.swf"
WIDTH=800 HEIGHT=600
swliveconnect=true ****Add this for use javascript with the new
player without bugs****
play = "false" ***** Will prevent the movie from
playing on loading the page for netscape******
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_P
rod_Version=ShockwaveFlash">


The embeed portion of the code is used by Netscape and the Object Portion is
for IE...
If you set a new param in the embeed or in the Object, dont forget to set it
in the other tag ...

Well, If you dont understand, reply me!!!

Good Luck!

Steve Couture
Les Aventures interactives de Berny
http://www.cle.net/berny






-----Message d'origine-----
De : Rudy de Belgeonne <rdebelgeattwowaytv [dot] co [dot] uk>
� : flasheratshocker [dot] com <flasheratshocker [dot] com>
Date : 6 juillet, 1998 14:35
Objet : Flash and JavaScript teamwork


> 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-manageratshocker [dot] com. Problems to: owneratshocker [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-manageratshocker [dot] com


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [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-manageratshocker [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]