blog.Ring.idv.tw

AIR

Adobe AIR - iPhone 山寨版

下載:Adobe AIR - iPhone 山寨版

好久沒有碰Adobe AIR了... 今天動手做了一個Adobe AIR版的iPhone影音播放,不過這其實只是一個披著iPhone外殼的介面,外加一點仿iPhone的功能,並且只「內嵌」了一首Girl Generation - Oh!歌曲~ 不過這都不是重點 XD 純粹只是想練習練習Flash而已~

2010-03-09 23:24:30 | Comments (2)

Air Icon Generator

(圖片來源:Air Icon Generator)

開發好Air Apps,但是又要為什麼樣的Icon傷腦筋嗎?

Air Icon Generator.是一個Air App,它提供你製作個人化的圖示,不過目前僅提供兩種樣式而已~

需要的人參考看看~ 至少比預設的Icon都會來的好看許多~ XD

2008-07-09 13:53:22 | Add Comment

Adobe AIR: 打造自己的SystemTray

每次當我們將電腦一開機,進入到桌面系統之後~ 隨之而來的就是載入一連串的常駐程式~ 或是開機自動執行的相關程式~

而這些程式有些會出現System Tray Icon在右下角的工具列中~

下述程式就是要處理這樣的動作滴~ 不過我改了一點小東西~

有裝過ApacheTomcat Server嗎?它們右下角的System Tray Icon會隨著啟動或關閉伺服器而有所變化~ 底下程式可以為你做到~ 玩玩看吧~ ^^

P.S. 請準備16x16、128x128的圖示

SystemTray.as

/**
 * Date: 2008-03-11
 * Shen (http://blog.ring.idv.tw)
 **/
package 
{
	import flash.desktop.*;
	import flash.events.*;
	import flash.display.*;
	import flash.net.*;
	
	public class SystemTray
	{
		private static var _instance:SystemTray;
		public static function getInstance():SystemTray
		{
			if(SystemTray._instance == null)
			{
				SystemTray._instance = new SystemTray(new PrivateClass());
			}
			return SystemTray._instance;
		}
		public function SystemTray(pvt:PrivateClass)
		{
			trace("SystemTray initialized!");
			NativeApplication.nativeApplication.autoExit = false;
			var icon:Loader = new Loader();
			var iconMenu:NativeMenu = new NativeMenu();
			var exitCommand:NativeMenuItem = iconMenu.addItem(new NativeMenuItem("Exit"));
			exitCommand.addEventListener(Event.SELECT, Exit);

			if (NativeApplication.supportsSystemTrayIcon)
			{
				icon.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoadComplete);
				icon.load(new URLRequest("icons/StopWatchIcon16.png"));

				var systray:SystemTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;
				systray.tooltip = "CSProxy";
				systray.menu = iconMenu;
			}

			if (NativeApplication.supportsDockIcon)
			{
				icon.contentLoaderInfo.addEventListener(Event.COMPLETE,iconLoadComplete);
				icon.load(new URLRequest("icons/StopWatchIcon128.png"));
				var dock:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;
				dock.menu = iconMenu;
			}
		}
		private function iconLoadComplete(event:Event):void
		{
			NativeApplication.nativeApplication.icon.bitmaps = [event.target.content.bitmapData];
		}
		public function onConnected()
		{
			var icon:Loader = new Loader();
			icon.contentLoaderInfo.addEventListener(Event.COMPLETE,iconLoadComplete);
			
			if (NativeApplication.supportsSystemTrayIcon)
				icon.load(new URLRequest("icons/logo16.jpg"));
				
			if (NativeApplication.supportsDockIcon)
				icon.load(new URLRequest("icons/logo128.jpg"));	
		}
		public function onDisconnected()
		{
			var icon:Loader = new Loader();
			icon.contentLoaderInfo.addEventListener(Event.COMPLETE,iconLoadComplete);
			
			if (NativeApplication.supportsSystemTrayIcon)
				icon.load(new URLRequest("icons/StopWatchIcon16.png"));
				
			if (NativeApplication.supportsDockIcon)
				icon.load(new URLRequest("icons/StopWatchIcon128.png"));	
		}
		private function Exit(event:Event):void
		{
			NativeApplication.nativeApplication.icon.bitmaps = [];
			NativeApplication.nativeApplication.exit();
		}
	}
}
class PrivateClass
{
	public function PrivateClass( )
	{
		trace("PrivateClass called");
	}
}

Flash

var singleton:SystemTray = SystemTray.getInstance();
//改變啟動圖示
singleton.onConnected();
//改變關閉圖示
singleton.onDisconnected();

相關資源

Working with the dock and the system tray

Flash LiveDocs:Taskbar icons

2008-03-11 15:43:36 | Comments (4)

Adobe AIR 1.0 釋出嚕~

Adobe AIR.今天已釋出1.0正式版嚕~ 更伴隨著Flex 3.0的問世~ 意謂著桌面應用程式大戰正式開戰嚕~ 未來的日子果真有好戲可看了~

真的好想找個時間來玩玩... 不過三月份感覺上是個忙碌的月份~ 感覺好像只能期待而無法兌現... 呃~ 來去忙了~

Insult Dueler: Building a Flash game on Adobe AIR.用Adobe AIR的特色來打造一個Flash遊戲~ 好夯哦~ ㄎㄎ~ 套一句「袁惟仁」的口頭蟬~ 真是「令人眼睛為之一亮」哈哈~

相關新聞

Adobe Technology Platform for RIAs Propels Innovation on the Web

Leading Companies Deliver RIAs on Adobe AIR

相關資源

Adobe AIR Developer Center for Flash

Adobe AIR resources

2008-02-25 20:35:39 | Add Comment

Adobe AIR Beta 3 釋出~

Adobe AIR Beta 3 釋出了(2007/12/12)~ 離正式版應該相去不遠了~ 有興趣的人可以到「Adobe AIR Beta 3 Installer」去下載,如果你想開發Adobe AIR的程式~ 請到Adobe AIR SDK下載SDK~

相關文章:

Adobe Integrated Runtime (AIR)

Introducing Adobe AIR for Ajax developers

Adobe AIR update beta 3 for Flash CS3 Professional

2007-12-14 11:02:10 | Add Comment

Previous Posts
Copyright (C) Ching-Shen Chen. All rights reserved.

::: 搜尋 :::

::: 分類 :::

::: Ads :::

::: 最新文章 :::

::: 最新回應 :::

::: 訂閱 :::

Atom feed
Atom Comment

::: 人氣指數 :::

今日人氣:151

累積人氣:3003616


::: 線上人數 :::

counter