Creating a Link to the Context Menu In Flash Player 10 for Flex 4 (Gumbo)

10 Sep
2008
Delicious

So Here is How you can add a link to the ContextMenu in Flash Player 10 for Flex 4, Now The Example is pretty straight forward and simple. However, I have not figured yet a purpose or what the use for it could be. To test the example, right click on the image. Click on Copy Link Location, go to the Browser Bar and Paste and You will see the URL of the link which would be to this site.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="library:adobe/flex/halo"
    xmlns="http://ns.adobe.com/mxml/2009"
    xmlns:ns="library:adobe/flex/gumbo" xmlns:local="*" 
    backgroundColor="0xFFFFFF"  
     xmlns:ui="flash.ui.*" xmlns:net="flash.net.*">
 
   <mx:Image source="@Embed('assets/1.jpg')">
   	      <mx:contextMenu>
   	      	<ui:ContextMenu>
   	      		<ui:link>
   	      			<net:URLRequest url="http://sherifabdou.com"/>
   	      		</ui:link>
   	      	</ui:ContextMenu>
   	      </mx:contextMenu>
   </mx:Image>
 
</mx:Application>
Incoming Search Terms :adobe flex menu link
Incoming Search Terms :adobe flex menu link

Share this story with a friend !
Join SherifAbdou's Rss Feed Stumble This Article! Add this to your Delicious Bookmarks! Digg this story ! Add this story to Reddit ! Tweet This Brush


Comment Form