# Flash MX 2004:I want to add a event Listner on MenuBar component

**URL:** <https://forum.kirupa.com/t/flash-mx-2004-i-want-to-add-a-event-listner-on-menubar-component/198569>\
**Category:** flash\
**Created:** [August 26, 2006, 5:08am UTC](https://forum.kirupa.com/t/flash-mx-2004-i-want-to-add-a-event-listner-on-menubar-component/198569 "2006-08-26T05:08:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogendra\_malav](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yogendra_malav/32/2761_2.png) [@yogendra\_malav](https://forum.kirupa.com/u/yogendra_malav)\
**Post date:** [August 26, 2006, 5:08am UTC](https://forum.kirupa.com/t/flash-mx-2004-i-want-to-add-a-event-listner-on-menubar-component/198569/1 "2006-08-26T05:08:49Z")

</div>

**Hi all,**  
I am very happy to join this community.This is my first Post.

I have made a Horizontal Menu bar usin MenuBar Component, name it “ **myMenuBar** ”  
I use addMenu to add menus to this bar.  
Then I add event listners for menus using **addEventListner(“change”,File)** it work fine.

But I add a menu HOME **var home = myMenuBar.addMenu(“HOME”);**

that not have any items(child), Now I want to add listners to this Menu, means Whenever I click HOME label on MenuBar a function have to call **How this can happen?**

Although I use **myMenubar.addEventListner(“focusIn”,var1);** It work for once, but it is for all menus…  
If anybody can help me please send your kind reply

Yogendra
