Forum Moderators: open
Going back to the button in the intro Flash I want to open index_a.html and another page which needs to open in the contents frame of index_a.html.
My question is how do I get Flash to do this? Any suggestions would be most appreciated.
Cheers
Johnathan
If you want to control multiple frames then duplicate the action with the url and frame name to send.
example of handling 2 frames with one click:
on(release){
getURL ("example.html", "navFrame");
getURL ("example2.html", "sideFrame");
}
In the getURL parameter put your page.htm followed by ?name=nameofyourpage.htm
It should look like this page.htm?name=nameofyourpage.htm
on(release){
getURL ("page.htm?name=nameofyourpage.htm");
}
Then in your frameset call a page that has a javascript query search.
<html>
<head>
<title>Master frameset</title>
</head>
<script language="JavaScript" type="text/javascript">
var querystring = window.location.search;
var querystringValue = querystring.substring(querystring.indexOf("=") +1, querystring.length);
document.write('<frameset cols="20%,80%"><frame src="nav.htm" name="nav"><frame src="' + querystringValue + '" name="content"><\/frameset>')
</script>
</html>
another great way is to follow tedsters orphan page javascript and just link directly to that framed page and have it call the frameset around it.
[webmasterworld.com...]