Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Controling movie from javascript: revisited |
From: | Helen Triolo |
Date: | Sat, 9 Sep 2000 04:39:51 +0100 |
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 helpchinwag [dot] com
Replies
Re: FLASH: Controling movie from javascr, Sergio Santos
Replies
FLASH: Controling movie from javascript:, Sergio Santos
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]