# Using UI components

**URL:** <https://forum.kirupa.com/t/using-ui-components/178156>\
**Category:** Uncategorized\
**Created:** [February 8, 2006, 4:15am UTC](https://forum.kirupa.com/t/using-ui-components/178156 "2006-02-08T04:15:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anif](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anif](https://forum.kirupa.com/u/anif)\
**Post date:** [February 8, 2006, 4:15am UTC](https://forum.kirupa.com/t/using-ui-components/178156/1 "2006-02-08T04:15:13Z")

</div>

Hi

This is very frustrating, and the Flash help file don’t seem to help much. I am using Flash MX 2004 Pro. I am trying to create a “menu” UI. I already have the “menuBar” UI with the required buttons labelled. I followed the help files in creating a “menu” UI, but this is not showing it, anyone know what is wrong?

The code i used is:  
var myMenu = mx.controls.Menu.createMenu();  
myMenu.menu.addMenuItem(“Open”);  
myMenu.menu.addMenuItem(“Close”);  
myMenu.show(50, 50);
