Hi,
I’m using javascript to cummunicate with flash and I have it working. It’s just that when I click this link
[CODE]<a href= VALUE=”Goto Frame 3″ ONCLICK=”go(2)” >go to the frame </a>
it goes to frame 3 but it trie’s to go to
[CODE]file:///C:/Documents%20and%20Settings/userName/Desktop/Javascript%20Talking%20to%20flash/VALUE=%22Goto
This is the Javascript at the top of my html page
[CODE]
<SCRIPT LANGUAGE=”JavaScript”>
<!–
var movieName = “testcommand”;
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]
}
}
// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != “undefined”) {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
function go(theFrame) {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).GotoFrame(theFrame);
}
}
function golabel() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).TGotoLabel(“_level0/”,”redframe”);
}
}
//–>
</SCRIPT>
Can anyone tell me why it’s trying to go to that page.
All I want it to do is go to that frame or frameLabel.
Thanks,