swf バージョン管理を右クリックで

by matsu
♥1 | Line 17 | Modified 2009-12-25 08:02:26 | MIT License
play

ActionScript3 source code

/**
 * Copyright matsu ( http://wonderfl.net/user/matsu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/840G
 */

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();">
	<mx:Script>
		<![CDATA[
			private var PROJECT_NAME:String = "Test";
			private var VERSION:String = "1.0.0";
			private function init():void
			{
				// 右クリック メニュー
				var contextMenu:ContextMenu = new ContextMenu();
				var contextMenuItem:ContextMenuItem = new ContextMenuItem(PROJECT_NAME + " " + VERSION, true, true, true);
				contextMenu.customItems.push( contextMenuItem );
				contextMenu.hideBuiltInItems();
				this.contextMenu = contextMenu;
			}
		]]>
	</mx:Script>
</mx:Application>

Forked