# Modifying XML driven Menu

**URL:** https://forum.kirupa.com/t/modifying-xml-driven-menu/268932
**Category:** flash
**Created:** [August 20, 2008, 3:49pm UTC](https://forum.kirupa.com/t/modifying-xml-driven-menu/268932 "2008-08-20T15:49:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davidbrent](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@davidbrent](https://forum.kirupa.com/u/davidbrent)
#### Post date: [August 20, 2008, 3:49pm UTC](https://forum.kirupa.com/t/modifying-xml-driven-menu/268932/1 "2008-08-20T15:49:37Z")

</div>

Hi I saw someone who said it would be be better to start a new thread rather than reply to the older thread, so if anyone can help me modifying this XML menu I’d appreciate it.

I love this menu, anyone found a way to have a 3rd option besides URL and nonurl. Here was my bad attempt…

For instance, I tried to create another action called _page_ which when clicked would open a link in an iframe I have beside my menu. I couldn’t set the target of a URL action to target that iframe, because most the links on my menu just launch a PDF which I want to be done in \_blank. And I of course still need nonurl to not load any pages, and just continue on with the function of the menu.

Any help would be greatly appreciated. Thanks 😃

```auto

onClipEvent (load)
{
    function executeAction(action)
    {
  if (action == "nonurl")
  {
  }
  else if (action == "page")
  {
      getURL(action , "iframecontent");
  }
  else
  {
   getURL(action , "_blank");
  }
 }

```

It doesn’t work because for my action “page” I have no way of sending the url for that page through XML, since i’ve used that variable to declare “page.”
