In my index.html, I have two iframes. One is iframe=centerviewer which starts out with a simple html (non-Flash) page. The other is iframes=“scroll” whose source is a Flash movie which is made up of buttons that when clicked, should put the linked html document in “centerviewer”. In the Flash 5 movie, I put in the action script in the button instance, and wrote… on (release) {
getURL (“harmony.html”, “centerviewer”);
}
Shouldn’t that put harmony.html into the iframe called centerviewer. Why doesn’t this work? Also, do I put the .swf or the .html of the Flash movie in the iframe?
*Originally posted by Susan *
**Shouldn’t that put harmony.html into the iframe called centerviewer. **
well, no. in your script, you are actually trying to refer to an iframe called ‘centerview’ WITHIN the iframe where your swf is loaded
Hi Ahmed,
I see, so is it possible to do what I need to do? Just tried to have the main doc an .html with two frames in a frameset, one being “centerviewer” and the other “scroller.” No good.
I needed to do a similar thing a while back, and i ended up writing a little javascript which i passed the page address to, and it sends that address to the another iframe… now, im not sure whether it will work for you or not, but give it a try anyways
// place this code in the same html-page where your swf file is loaded.
<head>
<script language="JavaScript1.2">
<!--
function show(page) {
window.top.main.centerviewer.location.href = page
}
//-->
</script>
</head>
and the code on the button:
pageAddressVar = "http://www.kirupaforum.com"
on (release) {
getURL("javascript:show('"+pageAddressVar+"')");
}
if it works, kirupaforum.com should be loaded in centerviewer =)