Flasher Archive

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


Subject: Re: FLASH: Controling movie from javascript: revisited
From: Sergio Santos
Date: Sun, 10 Sep 2000 16:17:59 +0100

I didn't but now i have, and no go either.

My <embed> tag looks like this:
<EMBED src="swf/main.swf?username=<?echo $username?>&level=<?echo $level?>"
menu=false
quality=best
swLiveConnect=true
scale=exactfit
bgcolor=#000000
NAME=main
WIDTH=100%
HEIGHT=100%
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash">
</EMBED>
So the object is named "main" hence movie=window.document.main in Netscape.
What p****s me is that this should work!!! I can't see where something is
wrong. Unless my eyes are addicted...

I've not included the IE part of the code, because that one is working fine,
but it's there.

Once again, if anyone know of a good site with tutorials / info on
javascript -> Flash, specially regarding Netscape, i'd be thankfull for the
URL.

Sergio

> Do you have swLiveConnect=true in the <embed> tag?
>
> If so, I'm out of ideas.
>
> Helen
> ---------------------------------------------------
> Flash 5 Journal: http://i-technica.com/flash5
> Flash Q&A archive: http://i-technica.com/flashlist
>
> Sergio Santos wrote:
> >
> > Well, I started a thread about controlling a movie with javascript. I
got it
> > working as I needed with IE, but something is wrong with Netscape.
> >
> > For those with some patience here's the code:
> > (between head tags)
> > //
> > function update(moldeid,frame) {
> > var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
> > var movie = InternetExplorer ? window.main : window.document.main;
> > movie.SetVariable('mould_id',moldeid);
> > movie.GotoFrame(frame);
> > }
> > //
> > This function works fine with IE, i can control the movie, i have the
frame
> > 12 (with javascript the first frame is 0), setting a variable in the
movie
> > that lets me know the link went ok.
> > The php code that triggers the movie is:
> > (I have data being feed from mysql) then I do:
> > $mouldref.="<b><A
> > HREF=\"javascript:update('".$row[0]."','11');\">".$row[6]."</A></b>\r"
> >
> > (Translated to html it is something like
> >
> > <A HREF="javascript:update('123123','11');>description</A>)
> >
> > This variable is introduced in a dinamic text field in Flash 5, works
fine
> > in IE, in Netscape, the link appears, it's clickable, but the action
> > (gotoframe,setvariable) is not executed properly.
> >
> > All this has php+mysql in it, but the problem is not from there, I can
> > assure that.
> >
> > In Netscape i'm not able to get that working. I may be missing some
stupid
> > thing, like some ' or something. I'm getting fed-up with this
IE-Netscape
> > differences, what may I be missing here? I'm the kind of those that read
all
> > the documentation, I spent a lot of time reading Netcenter javascript
docs,
> > but no go...
> >


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  SOLVED: FLASH: Controling movie from jav, Sergio Santos

Replies
  FLASH: Controling movie from javascript:, Sergio Santos
  Re: FLASH: Controling movie from javascr, Helen Triolo

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