# Possible for xml menu go to specific frame?

**URL:** <https://forum.kirupa.com/t/possible-for-xml-menu-go-to-specific-frame/265585>\
**Category:** Uncategorized\
**Created:** [July 10, 2008, 2:30pm UTC](https://forum.kirupa.com/t/possible-for-xml-menu-go-to-specific-frame/265585 "2008-07-10T14:30:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akmdesign](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akmdesign](https://forum.kirupa.com/u/akmdesign)\
**Post date:** [July 10, 2008, 2:30pm UTC](https://forum.kirupa.com/t/possible-for-xml-menu-go-to-specific-frame/265585/1 "2008-07-10T14:30:16Z")

</div>

is it possible for an xml menu to go to a specific frame within the swf? Like a regular button would

let me know…thanks guys!

(im don’t necessarily need code…i just want to know if this is common or possible.

---

<div class="post-metadata">

**Author:** ![jpodz](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jpodz](https://forum.kirupa.com/u/jpodz)\
**Post date:** [July 10, 2008, 3:07pm UTC](https://forum.kirupa.com/t/possible-for-xml-menu-go-to-specific-frame/265585/2 "2008-07-10T15:07:43Z")

</div>

I don’t see why it wouldn’t be possible, if you set up your XML sort of like this…

```auto

<button text="blah" gotothisframe="5">

```

Then all you’d have to do it

```auto
button1.onRelease = function() {
gotoAndPlay(....guide to node.attributes.gotothisframe)
}

```

Hope this helped.

---

<div class="post-metadata">

**Author:** ![akmdesign](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akmdesign](https://forum.kirupa.com/u/akmdesign)\
**Post date:** [July 10, 2008, 3:32pm UTC](https://forum.kirupa.com/t/possible-for-xml-menu-go-to-specific-frame/265585/3 "2008-07-10T15:32:07Z")

</div>

[quote=jpodz;2356213]I don’t see why it wouldn’t be possible, if you set up your XML sort of like this…

```auto

<button text="blah" gotothisframe="5">

```

Then all you’d have to do it

```auto
button1.onRelease = function() {
gotoAndPlay(....guide to node.attributes.gotothisframe)
}

```

Hope this helped.[/quote]

Great thanks…as long as i know its possible :)…i will make it work and post script…thanks!

---

<div class="post-metadata">

**Author:** ![akmdesign](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akmdesign](https://forum.kirupa.com/u/akmdesign)\
**Post date:** [July 11, 2008, 3:13pm UTC](https://forum.kirupa.com/t/possible-for-xml-menu-go-to-specific-frame/265585/4 "2008-07-11T15:13:15Z")

</div>

ok so heres what i have…

my xml for my menu is setup like this…

```auto
<?xml version="1.0" encoding="UTF-8"?>

<menu buttonsSpacing="25" >    
    <item title="Portfolio" itemColor="0xFFFFFF" itemRollOverColor="0x0EF0C0">
        <subitem title="portraits" link ="http://www.ffiles.com/users/NoGrids" />
        <subitem title="conceptual" link ="http://www.ffiles.com/users/NoGrids" />
        <subitem title="art" link ="http://www.ffiles.com/users/NoGrids" />
        <subitem title="self" link ="http://www.ffiles.com/users/NoGrids" />
    </item>
</menu>

```

Instead of them linking to outside links/pages. I need them to target a specific movieclip within the swf and go to a specific frame…possible?

also heres the key btn AS…how do i modify this to match up weith the xml?

```auto
        //call function when on release
        mc.onRelease = function(){
            //trace(this);
            if(this.link != "" && this.link != " " && this.link != undefined){
                getURL(this.link,"_blank");
            }
        }

```
