Could someone please help me troubleshoot this problem?
my page loads a ‘container’ SWF.
there is an iframe on the page
the IFrame has links, each link should load a new swf into the ‘container’
main page JS…
<script language=“javascript”>
<!–
function thisMovie(movieName) {
if (navigator.appName.indexOf(“Microsoft”) != -1) {
return window[movieName];
} else {
return document[movieName];
}
}
function loadMedical(value) {
thisMovie(value).medical();
alert (‘gee, it works!’)
}
–>
</script>
Button link in the IFrame…
<form>
<a href="#" onClick=“parent.loadMedical(‘movie’);”>button</a>
</form>
Actionscript…
import flash.external.ExternalInterface;
ExternalInterface.addCallback(“medical”, null, medical);
function medical():Void {
unloadMovie(mc_loadMovie);
mc_loadMovie.loadMovie(‘swf/medical.swf’)
getURL(‘home_medical.html’,‘textarea’);
}
I got it to work when the links are on the main page, but not when in the iframe. I’m guessing it a parent window issue? any clues?
Thanks!
Hiren