Flasher Archive

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


Subject: RE: Flash and JavaScript teamwork
From: Rudy de Belgeonne
Date: Tue, 7 Jul 1998 23:49:12 +0100

This got me out of my trouble - thank you Steve.

My next problem is trying to embed the flash movie in a layer/div for
more control within the HTML page.
It works well, allowing me to hide/show the movie layer, revealing HTML
behind it, or to change the position of the movie on the page.

The problematic part is that I can no longer control the movie through
JavaScript.

I thought the syntax should be something like:

<input type="button" value="Play Flash"
onClick="window.document.layers['movieLayer'].document.intromovie.Play()
">

but it obviously isn't as it can't find the movie.

Has anyone else tried this?

Thanks again

Rudy

> -----Original Message-----
> From: Steve Couture [SMTP:Steveatcle [dot] net]
> Sent: Monday, July 06, 1998 7:58 PM
> To: flasheratshocker [dot] com
> Subject: Re: Flash and JavaScript teamwork
>
> 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#versio
> n=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?P
> 1_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
>

------------------------------------------------------------------------
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]