Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1379 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

help controlling flash with java

Thread title: help controlling flash with java
Closed Thread    
    Thread tools Search this thread Display Modes  
10-23-2007, 10:25 PM
#1
almog00 is offline almog00
Status: I'm new around here
Join date: Oct 2007
Location: Israel, Lav Vegas
Expertise:
Software:
 
Posts: 1
iTrader: 0 / 0%
 

almog00 is on a distinguished road

  Old  help controlling flash with java

Hi, I am web master I was asked to control a flash
based navigation menu Thur JavaScript for work.
we wanted to control the flash menu Thur JavaScript.
IE: to go to a certain frame when the html page loads.
I got it working using JavaScript but I am havening
problems one in IE7 it does not load on the first time
once I refresh it does, sometimes the links inside the
flash menu don't work, but what is driving me crazy is
in Firefox it loads fine but when I go back and forth it
does not work. Also its not working at all in safari.
can someone please help me. the code is at the bottom
thanks
Code:
<SCRIPT language=JavaScript>

var movieName = "vdo_menu5";
function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }    else {
    return document[movieName]
  }
}
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
addLoadEvent(playgtr3);
addLoadEvent(function() {
});

function playgtr3() {
  if (movieIsLoaded(thisMovie(movieName))) {
  thisMovie(movieName).TGotoFrame("_level0/buttSet",15)
 }
}

</SCRIPT>

<TBODY onload="playgtr3()">

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed