# Iframe hierarchy mess

**URL:** https://forum.kirupa.com/t/iframe-hierarchy-mess/214388
**Category:** flash
**Created:** [January 28, 2007, 1:41pm UTC](https://forum.kirupa.com/t/iframe-hierarchy-mess/214388 "2007-01-28T13:41:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![staticwolf](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@staticwolf](https://forum.kirupa.com/u/staticwolf)
#### Post date: [January 28, 2007, 1:41pm UTC](https://forum.kirupa.com/t/iframe-hierarchy-mess/214388/1 "2007-01-28T13:41:55Z")

</div>

Hey guys,

I got a little problem here. On my main page, I have an iframe called ‘mainframe’. This iframe holds some flash. When someone clicks on it, the entire .swf is replaced with a web page using a simple getURL statement like **getURL(“newpage.htm”,“mainframe”)**

Now comes the weird part. I’ve got a flash menu on newpage.htm too. When someone clicks on a link, I wanna change newpage.htm to newpage2.htm. But because the new flash is embedded in the page newpage.htm, it can’t reach the iframe ‘mainframe’ in the parent page.

How can I use getURL to reach outside the current page… up to the main page and tell it change the stuff in ‘mainframe’?

Help would be deeply appreciated.
