MenuBar Component

I have been looking for a tutorial to help me out for hours., I have sucessfully set up a menu that reads from a XML file. All I need is when you clcik ona menu item it goes to a certain frame.

I think I need an event listener but I dont know how to do this. Could some one whip up a script that will help me.

XML FILE


<menu>
<menu-title label="XeD"> 
        <menu-item label="Xenon Design" enabled="false" />
        <menu-item type="separator"/>
        <menu-item label="Home" instanceName="xedhome"/> 
        <menu-item label="Services" instanceName="xedservices"/> 
        <menu-item label="Clients" instanceName="xedclients"/> 
        <menu-item label="Contact" instanceName="xedcontact"/> 
        <menu-item label="Login" instanceName="xedlogin"/> 
        
    </menu-title>
</menu>

The above code works. I just need a event listener to work.

EDIT: I made a copy mistake with the CODE section…its now fine

Thanks,

Alex