PIXNET Logo登入

經驗交流分享與備忘

跳到主文

感情最痛恨 劈腿. 背叛 與 欺騙

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 3月 16 週三 201117:25
  • Action SCRIPT 2.0 之 MouseEvent 參考

Action SCRIPT 2.0 之  MouseEvent 參考
stop();
stage.addEventListener(MouseEvent.MOUSE_MOVE,stageEvent);
stage.addEventListener(Event.MOUSE_LEAVE,stageLeave);
mcCircle.addEventListener(MouseEvent.MOUSE_OVER,addEvent);
mcCircle.addEventListener(MouseEvent.MOUSE_OUT,addEvent);
mcCircle.addEventListener(MouseEvent.MOUSE_DOWN,addEvent);
mcCircle.addEventListener(MouseEvent.MOUSE_UP,addEvent);
mcCircle.addEventListener(MouseEvent.MOUSE_WHEEL,addEvent);
mcCircle2.addEventListener(MouseEvent.ROLL_OUT,workAround);
mcCircle2.addEventListener(MouseEvent.ROLL_OVER,workAround);
mcCircle2.addEventListener(MouseEvent.CLICK,workAround);
mcCircle2.doubleClickEnabled = true;
mcCircle2.mouseChildren = false;//because of nested MC's
mcCircle2.addEventListener(MouseEvent.DOUBLE_CLICK,workAround);
function addEvent(evt:MouseEvent) {
var fieldName = evt.target;
fieldName.text = evt.type;
}
function workAround(evt:MouseEvent) {
mcCircle2.txtEvent.text = evt.type;
}
function stageEvent(evt:MouseEvent) {
txtEvent.text = evt.type+"\n x:"+Math.floor(evt.stageX)+" y:"+Math.floor(evt.stageY);
}
function stageLeave(evt:Event) {
txtEvent.text = evt.type;
}
註: 可用 trace 去確認事件是否達成.
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(299)

  • 個人分類:Flex程式設計
▲top
  • 7月 22 週四 201010:40
  • Create your own .pfx file for ClickOnce

When you use ClickOnce to deploy your application with Visual Studio, a .pfx file is automatically generated by default.
當你透過 ADT 建立 Windows 或 MAC 的原生安裝檔案時, 你會需要 憑證檔案 ,此時, 這篇文章很重要, 請參考以下內容:

(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(1,118)

  • 個人分類:Flex程式設計
▲top
  • 7月 22 週四 201010:03
  • 產生 AIR 安裝檔案

當使用 Flash builder 3 建立 AIR 桌面應用程式後 ,將會產生 .airi 的安裝檔案 ,此檔案若要在 Windows 平台 或 MAC 平台上面進行執行並且安裝, 則必須透過 Adobe AIR 原生的 ADT 指令, 將 .airi 或 .air 檔案輸出成 Windows or MAC 平台原生的安裝檔案.

你可以使用以下的指令:

下列範例會根據 AIR 檔案建立 DMG 檔 (Mac OS 適用的原生安裝程式檔案):

  • adt -package -target native myApp.dmg myApp.air



下列範例會根據 AIR 檔案建立 EXE 檔 (Windows 適用的原生安裝程式檔案):

  • adt -package -target native myApp.exe myApp.air



下列範例會建立 EXE 檔 (根據 AIR 檔案) 並予以簽署:

  • adt -package -target native -storetype pkcs12 -keystore myCert.pfx myApp.exe myApp.air



下列範例會根據 AIRI 檔案建立 DMG 檔 (Mac OS 適用的原生安裝程式檔案):

  • adt -storetype pkcs12 -keystore myCert.pfx -packag e-target native myApp.dmg myApp.airi



下列範例會根據 AIRI 檔案建立 EXE 檔 (Windows 適用的原生安裝程式檔案):

  • adt -storetype pkcs12 -keystore myCert.pfx -package -target native myApp.exe myApp.airi



下列範例會建立 EXE 檔 (根據 AIRI 檔案) 並予以簽署:

  • adt -package -storetype pkcs12 -keystore myCert.pfx -target native -storetype pkcs12 -keystore myCert.pfx myApp.exe myApp.airi



(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(1,174)

  • 個人分類:Flex程式設計
▲top
  • 7月 22 週四 201003:10
  • [轉貼] How To Install Adobe AIR on Windows, Mac OS and Ubuntu

adobe-air-installation
Now a days most of the desktop applications are coming on Adobe AIR platform which is really cool. For example, TweetDeck, Twhirl, Reader etc. are already there using different APIs to get the data and let you manage that properly thru Desktop. To use these application, you will have to install Adobe AIR on your computer. Whether you are using Windows (Windows XP, Vista, Windows 7), Mac OS or Linux (Ubuntu or any other), Here is the step by step guide to install Adobe AIR on them.
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(270)

  • 個人分類:Flex程式設計
▲top
  • 7月 22 週四 201000:57
  • [轉貼] Using the PEAR PHP XML Serializer class with Flex

PEAR is a framework and distribution system for reusable PHP components. The code in PEAR is partitioned in “packages”. Each package is a separate project with its own development team, version number, release cycle, documentation and a defined relation to other packages (including dependencies). Packages are distributed as gzipped tar files with a description file inside, and installed on your local system using the PEAR installer.PEAR contains PHP classes that are perfect for serializing data to be passed to a Flex application. Unfortunately, there is currently no package that would allow automatic installation for a Flex/PHP developer that wants to use the PEAR XML Serializer functionality.
In this article, I am going to describe how to do a local tweak and installation of the PEAR XML classes on a server that does not have PEAR pre-installed. Even if your server has PEAR installed, this approach will work.

Getting the Necessary PEAR Files
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(157)

  • 個人分類:Flex程式設計
▲top
1

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章分類

toggle 作業系統相關 (9)
  • FreeBSD (8)
  • IPv6 Logo (2)
  • Visual C# (1)
  • Visual C# (1)
  • Mac使用心得 (5)
  • Synology NAS應用 (0)
  • 系統應用 (49)
  • 防毒防駭 (5)
  • 系統安裝 (30)
toggle 投資理財 (2)
  • 科技產業 (8)
  • 投資學習 (9)
toggle 網頁設計相關 (6)
  • Flex程式設計 (5)
  • MySQL資料庫 (13)
  • ASP.NET程式設計 (1)
  • CSS樣式表應用 (5)
  • Flex (1)
  • PHP程式設計 (51)
  • Perl 程式設計 (1)
  • Windows系統應用 (2)
  • 好書推件 (1)
  • Android程式設計 (10)
  • C程式設計 (2)
  • Linux相關應用 (18)
  • Java程式設計 (6)
  • JAVAt程式設計-GWT (7)
  • Eucalyptus XEN (2)
  • 喻道故事 (1)
  • 下載資源 (2)
  • 終生學習 (7)
  • Goolge 新玩意 (1)
  • 英文學習心得 (3)
  • 工商服務 (12)
  • 勵志成長 (18)
  • 新聞時事 (17)
  • 讀者服務 (3)
  • JavaScript (22)
  • 省錢大作戰 (15)
  • 搶錢大作戰 (2)
  • 趣味分享 (50)
  • 感情生活 (15)
  • 用DSLR寫日記 (20)
  • 程式設計 (7)
  • 職場人生 (16)
  • 健康生活 (63)
  • 未分類文章 (1)