|
-
I'm trying to load an swf file from an html page at a particular frame using Java Script. IE works fine but Netscape (fRM>>>BLEEP BLEEP DAM>>) is giving crazy results.
Here is my sample code :
<SCRIPT LANGUAGE=JavaScript>
<!--
var movie = whichObj('ViciousSite');
if (movie != null)
{
do{
var perc = movie.PercentLoaded();
} while ( perc != 100 )
if (navigator.appName == "Netscape")
movie.GotoFrame(1420);
}
movie.GotoFrame(1420)
//-->
Please Help!!!!
-
first, check to make sure that swLiveConnect="True" is inside the <embed></embed> tag.
also, instead of passing the value param alone, include a "/" so that the movie knows to load it to the top level.
var movie = window.document.your_movie_name
movie.TGotoFrame('/',1420)
here's a whole function to use:
Code:
<script language="javascript">
function goTo(){
var movie = window.document.YourMovieNameGoesHere;
//TGotoFrame is a command that sends the variable
// the "/" tells the script that the var is going to the top level of the movie
// this can be replaced with the instance name of a movieclip
movie.TGotoFrame('/', putTheFrameNumberHere)
}
// don't forget to put the movie name in the object and embed
//tags and that swLiveConnect="True"
</script>
<TITLE>goto</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="goTo()">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
ID=YOUR_MOVIE_NAME_HERE WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="your.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="your.swf" name=YOUR_MOVIE_NAME_HERE quality=high swLiveConnect="True" bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
-
Thanks
Originally posted by edeveloper
first, check to make sure that swLiveConnect="True" is inside the <embed></embed> tag.
also, instead of passing the value param alone, include a "/" so that the movie knows to load it to the top level.
var movie = window.document.your_movie_name
movie.TGotoFrame('/',1420)
here's a whole function to use:
Code:
<script language="javascript">
function goTo(){
var movie = window.document.YourMovieNameGoesHere;
//TGotoFrame is a command that sends the variable
// the "/" tells the script that the var is going to the top level of the movie
// this can be replaced with the instance name of a movieclip
movie.TGotoFrame('/', putTheFrameNumberHere)
}
// don't forget to put the movie name in the object and embed
//tags and that swLiveConnect="True"
</script>
<TITLE>goto</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="goTo()">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
ID=YOUR_MOVIE_NAME_HERE WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="your.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="your.swf" name=YOUR_MOVIE_NAME_HERE quality=high swLiveConnect="True" bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
-
Netscape 6
Hi! I'd like to add that Netscape 6 doesn't support LiveConnect, so the Flash Methods will not work for Netscape 6 (we have to wait until they update the LiveConnect plugin API or until Macromedia finds a solution). Also Flash Methods will not work for IE on Mac (lack of ActiveX).
-
Netscape 6
is anyone else as pissed off as i am that Netscape dropped LiveConnect in version 6? is the hope that they will update the API a fantasy? i realize we're only talking about 11 percent of the browsing public, but that's still a pretty big chunk of people. what's a multimedia developer to do?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|