A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: I Hate Netscape//Please Help

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    10
    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!!!!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    1,317
    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>

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    10

    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>

  4. #4

    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).

  5. #5
    Junior Member
    Join Date
    Sep 2000
    Posts
    10

    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?

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Location
    Redmond, Wa
    Posts
    701
    God I hate Netscape.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center