Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FW: Flash in HTML layers |
From: | Rudy de Belgeonne |
Date: | Wed, 8 Jul 1998 15:18:47 +0100 |
Does anyone know whether its POSSIBLE to embed a flash movie in a layer
(and be able to access it)?
> -----Original Message-----
> From: Rudy de Belgeonne [SMTP:rdebelgetwowaytv [dot] co [dot] uk]
> Sent: Tuesday, July 07, 1998 5:21 PM
> To: flashershocker [dot] com
> Subject: RE: Flash and JavaScript teamwork
>
> 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:Stevecle [dot] net]
> > Sent: Monday, July 06, 1998 7:58 PM
> > To: flashershocker [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 <rdebelgetwowaytv [dot] co [dot] uk>
> > � : flashershocker [dot] com <flashershocker [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-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
> >
> >
> >
> ----------------------------------------------------------------------
> > --
> > 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
> >
>
> ----------------------------------------------------------------------
> --
> 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
>
------------------------------------------------------------------------
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]