Adding Links in Menu in Adobe AIR/ FLEX.

Hi all…

In this tutorial I will show you how to add links in a menu in Adobe AIR/ FLEX.
It is really simple. Just add a normal menu item and on the click handler for menu items match the label and navigate to the URL, that’s all.
Check out this example.
Change the mx:Application to mx:windowedApplication to work this example as AIR application.


			// create menu items
			private function init():void {
				menuCollection = new XMLListCollection(menubarXML);

			// click handler for menubar
			private function menuHandler(event:MenuEvent):void
					var url:URLRequest = new URLRequest('');
				else if(event.item.@label=="")
					url = new URLRequest('');

Link in menu example in Adobe AIR

One thought on “Adding Links in Menu in Adobe AIR/ FLEX.”

  1. You’ve got great insights about menus, keep up the good work!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>