# Cannot get java parent or top with ExternalInterface.call()

**URL:** <https://forum.kirupa.com/t/cannot-get-java-parent-or-top-with-externalinterface-call/237859>\
**Category:** Uncategorized\
**Created:** [September 4, 2007, 7:39pm UTC](https://forum.kirupa.com/t/cannot-get-java-parent-or-top-with-externalinterface-call/237859 "2007-09-04T19:39:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [September 4, 2007, 7:39pm UTC](https://forum.kirupa.com/t/cannot-get-java-parent-or-top-with-externalinterface-call/237859/1 "2007-09-04T19:39:06Z")

</div>

i have an HTML with an iframe the navigation is setup using ExternalInterface.call(), however the .swf inside of the iframe does not have access to the java function that changes the pages and i think its because its inside of the iframe and not in the html

//these don’t work ☹  
function goLogin(event:MouseEvent) {  
ExternalInterface.call(“top.changeBody”, “11”);  
}  
function goSetup(event:MouseEvent) {  
ExternalInterface.call(“parent.parent.changeBody”, “12”);  
}

can anyone offer any advice on how to get it so the .swf inside the iframe can access the changeBody function?
