1. [ Android ] 成為裝置的開發人員 ( 設定 > 關於 >「版本號碼」按 7 下 )
2. [ Android ] 設定 > 開發人員選項 > 開啟 USB 偵錯
3. [ PC ] 控制台出現不明 Android 裝置
4. [ PC ] 對該裝置安裝 android_usb_driver
Sunday, November 17, 2013
Adobe air 開發經驗分享
Adobe air 開發經驗分享 from Rhino Lu
2013/10 結束在科碼兩個月的約聘後,恢復自由接案的身分。歡迎洽詢 Flash / Adobe AIR / Mobile APP 合作!
2013/10 結束在科碼兩個月的約聘後,恢復自由接案的身分。歡迎洽詢 Flash / Adobe AIR / Mobile APP 合作!
Saturday, November 16, 2013
SimpleButton 移除滑鼠事件時,會搶走 stage focus
Lamb Mei:
P.S 按鈕是MovieClip 若是物件被移除移(如 POPUP 畫面關閉後, 移除整個popup物件) focus 也會變成 null
保險的做法在移除的時候再次指派focus
P.S 按鈕是MovieClip 若是物件被移除移(如 POPUP 畫面關閉後, 移除整個popup物件) focus 也會變成 null
保險的做法在移除的時候再次指派focus
XRegExp AS3
https://github.com/Ticore/xregexp_as3
XRegExp AS3 是從 XRegExp 2.0.0 (create by Steven Levithan) 移植到 ActionScript 3.0 版本
盡量保留原本 Functional Style 寫法
僅針對 JS, AS3 語法特性上差異進行修正微調
移植項目包含全部的 Addons :
盡量保留原本 Functional Style 寫法
僅針對 JS, AS3 語法特性上差異進行修正微調
移植項目包含全部的 Addons :
- Unicode Base 1.0.0
- Unicode Categories 1.2.0
- Unicode Scripts 1.2.0
- Unicode Blocks 1.2.0
- Unicode Properties 1.0.0
- XRegExp.matchRecursive 0.2.0
- XRegExp.build 0.1.0
- Prototypes 1.0.0
[ 轉 ] Starling 官方多解析度螢幕的開發指引
http://qops.blogspot.tw/2013/05/starling.html
Starling 官方多解析度螢幕的開發指引簡單來說就是利用 viewPort 的尺寸和 starling.stage.stageWidth, starling.stage.stageHeight 大小來調整內容的縮放比 ( starling.contentScaleFactor )。
Starling 官方多解析度螢幕的開發指引簡單來說就是利用 viewPort 的尺寸和 starling.stage.stageWidth, starling.stage.stageHeight 大小來調整內容的縮放比 ( starling.contentScaleFactor )。
PathFindindJS
https://github.com/qiao/PathFinding.js
The aim of this project is to provide a path-finding library that can be easily incorporated into web games. It may run on Node.js or the browser.
The aim of this project is to provide a path-finding library that can be easily incorporated into web games. It may run on Node.js or the browser.
Javascript 地址輸入
奶綠茶:
https://github.com/milkmidi/taiwan_city_area_select_component
黑暗執行緒:
https://github.com/darkthread/twAddrHelper
https://github.com/milkmidi/taiwan_city_area_select_component
黑暗執行緒:
https://github.com/darkthread/twAddrHelper
AS3 按鈕 RollOver 問題
請教一個按鈕的問題,如果在偵聽按鈕事件前,滑鼠已經在按鈕上,就不會觸發 RollOver 事件;解法是偵聽按鈕事件後,馬上檢查滑鼠位置是否在滑鼠上。還有其他解法嗎?
Ticore Shin :
沒有監聽事件就 mouseEnabled = false
否則 mouseEnabled = true
Ticore Shin :
沒有監聽事件就 mouseEnabled = false
否則 mouseEnabled = true
有 x, y 的 getter setter 等 DisplayObject 既有的能力的 interface
http://code.google.com/p/templelibrary/source/browse/trunk/lib/temple/ui/IDisplayObject.as?r=9
TempleLibrary IDisplayObject.as
另外,GaiaFramework 也有 IDisplayObject
https://github.com/stevensacks/Gaia-Framework/blob/master/framework/as3/classes/com/gaiaframework/api/IDisplayObject.as
但是 IAsset 專用,所以有特別擴充過,僅適用於 GaiaFramework 。
TempleLibrary IDisplayObject.as
另外,GaiaFramework 也有 IDisplayObject
https://github.com/stevensacks/Gaia-Framework/blob/master/framework/as3/classes/com/gaiaframework/api/IDisplayObject.as
但是 IAsset 專用,所以有特別擴充過,僅適用於 GaiaFramework 。
SmartGit 解決中文亂碼
http://www.syntevo.com/smartgithg/howtos/5/show?page=trouble-shooting.change-encoding
If your files are displayed with invalid characters, you'll need to change the encoding scheme. To do so, open the Repository Settings dialog with Project|Repository Settings and select an appropriate encoding on the Text Encoding tab.
( 選 UTF-8 )
If your files are displayed with invalid characters, you'll need to change the encoding scheme. To do so, open the Repository Settings dialog with Project|Repository Settings and select an appropriate encoding on the Text Encoding tab.
( 選 UTF-8 )
AS3 To TypeScript Convertor
https://github.com/photonstorm/AS3toTypeScript
By Richard Davey, Photon Storm
I build a lot of HTML5 games in TypeScript which includes converting Flash AS3 games. I found that I was going through the same processes over and over again when converting the AS3 source code to TypeScript. Simple things like swapping "Boolean" for "bool" and many other tedious tasks. So I wrote a PHP script that would do it for me and I'm sharing it here with you.
為什麼用 PHP 而不是 Adobe AIR...
Phaser
https://github.com/photonstorm/phaser
Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses Pixi.js internally for fast 2D Canvas and WebGL rendering.
Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses Pixi.js internally for fast 2D Canvas and WebGL rendering.
ShoeBox
http://renderhjs.net/shoebox/
ShoeBox is a free Adobe Air based app for Windows and Mac OSX with game and ui related tools. Each tool uses a drag and drop - or clipbord interaction for a quick workflow.
ShoeBox is a free Adobe Air based app for Windows and Mac OSX with game and ui related tools. Each tool uses a drag and drop - or clipbord interaction for a quick workflow.
Feathers 小問題
http://stackoverflow.com/questions/14079070/how-do-i-make-normal-sized-components-in-starlings-feather-framework-when-wor
第一次使用 Feathers 一定會遇到的問題:手機上看起來正常,但在桌面上看起來超小.. . 。官方網頁上的 Sample 用桌機看是正常大小,下載範例檔回來輸出卻變小...
http://forum.starling-framework.org/topic/xscreendpi-and-web-applications-without-air
You should also override the screenPixelWidth and screenPixelHeight values. These will will be combined with the dpi value to determine if it's a phone or tablet.
As an example, the following code simulates an iPhone Retina (and will result in a scale value of 1.0):
DeviceCapabilities.dpi = 326;
DeviceCapabilities.screenPixelWidth = 960;
DeviceCapabilities.screenPixelHeight = 640;
第一次使用 Feathers 一定會遇到的問題:手機上看起來正常,但在桌面上看起來超小..
http://forum.starling-framework.org/topic/xscreendpi-and-web-applications-without-air
You should also override the screenPixelWidth and screenPixelHeight values. These will will be combined with the dpi value to determine if it's a phone or tablet.
As an example, the following code simulates an iPhone Retina (and will result in a scale value of 1.0):
DeviceCapabilities.dpi = 326;
DeviceCapabilities.screenPixelWidth = 960;
DeviceCapabilities.screenPixelHeight = 640;
Drawscript
http://drawscri.pt/
Illustrator 外掛,將向量圖形轉成程式,Supports: ObjC, C++, Processing, JavaScript, AS3, JSON
Monday, September 23, 2013
Android APP 大於 50MB 似乎有解了
http://pol2095.free.fr/Air_APKExpansionFiles
if your app exceeded 50MB, you can add one or two expansion files ("main" and "patch") on Google Play Developer Console, each file can be up to 2GB.
Monday, August 19, 2013
Wednesday, August 14, 2013
多人點對點連線遊戲
Building a Peer-to-Peer Multiplayer Networked Game
http://gamedevelopment.tutsplus.com/tutorials/building-a-peer-to-peer-multiplayer-networked-game--gamedev-10074
http://gamedevelopment.tutsplus.com/tutorials/building-a-peer-to-peer-multiplayer-networked-game--gamedev-10074
Monday, August 12, 2013
Saturday, August 10, 2013
老外的 AIR APP 開發經驗
BTicino Wiring Devices, a Starling-based customisable catalogue
http://www.noriste.com/bticino-wiring-devices-a-starling-based-customisable-catalogue/
http://www.noriste.com/bticino-wiring-devices-a-starling-based-customisable-catalogue/
Monday, March 25, 2013
遊戲開發者 Terry Paton 釋出大量遊戲原始碼
Source code to AS3 games! (Part 1)
http://pixelpaton.com/?p=5646
Source code to 5 more AS3 games! (Part 2)
http://pixelpaton.com/?p=5659
Source code to 5 more AS3 games! (Part 3)
http://pixelpaton.com/?p=5668
Source code to 5 more AS3 games! (Part 4)
http://pixelpaton.com/?p=5689
Source code to ALL the AS2 and AS3 games I’m sharing
http://pixelpaton.com/?p=5707
[轉] Flash 程序员的 Objective-C 教程
Flash程序员的Objective-C教程(1) – 概念篇
http://www.tech-mx.com/blog/?p=105
Flash程序员的Objective-C教程(2) – 类结构拆分
http://www.tech-mx.com/blog/?p=124
Flash程序员的Objective-C教程(3) – 调试
http://www.tech-mx.com/blog/?p=134
Flash程序员的Objective-C教程(4) – 内存管理和初始化
http://www.tech-mx.com/blog/?p=151
Flash程序员的Objective-C教程(5) – 安装cocos2d-iPhone
http://www.tech-mx.com/blog/?p=163
FlashDevelop
FlashDevelop is a free and open source code editor for every Flash developer
http://www.flashdevelop.org/
心目中最強大的 Flash Code Editor !
免費,但目前僅支援 Windows 平台
FeathersUI
http://feathersui.com/
建構於 Starling 之上的一組 UI 套件
因為有硬體加速,所以很適合發佈在行動裝置上
有 Adobe 官方支援
簡體中文社群提供的相關文件翻譯:
http://www.starlinglib.com/wiki/FeathersUI
2D Animation Tools
Spine
http://esotericsoftware.com/
DragonBones
http://dragonbones.github.com/
Spriter
http://brashmonkey.com/spriter.htm
SpriterAS
http://treefortress.com/introducing-spriteras-play-spriter-animations-scml-with-starling/
https://github.com/treefortress/SpriterAS
Flump
http://threerings.github.com/flump/
SpriterMC
http://www.sammyjoeosborne.com/SpriterMC/
Swivel SWF 時間軸動畫轉影片
http://www.newgrounds.com/wiki/creator-resources/flash-resources/swivel
What Flash features does Swivel NOT support?
Swivel will probably not work well with the following features:
- getTimer, setTimeout, and Timers
- Sound complete events
- Loading assets external, such as XML or Sounds
- Dynamically loaded SWFs (including those embedded using the Embed metadata)
- TLF Text Fields with Linkage set to Preloader SWF
- Stage3D
Future versions of Swivel may support more features -- particularly, items higher on the list are likely to be supported.
fla 版本降轉工具
可將 CS 6/CS 5.5 降轉至 CS 5
Flannel
http://ajarproductions.com/blog/2012/03/06/flannel-open-newer-fla-files/
另外,CS 5.5 可以開 CS 6 的 fla / xfl 檔案
AS3 print 在 Chrome 的問題
解決在Chrome裡無法使用 Flash PrintJob 的問題
http://milkmidi.blogspot.tw/2012/08/chrome-flash-printjob.html
重點是要「addChild」
addChild(some_sprite); print(); removeChild(some_sprite); }
Sunday, March 24, 2013
40個遊戲教程
40+ Fantastic Game Development Tutorials From Across the Web
http://gamedev.tutsplus.com/articles/roundups/fantastic-gamedev-tutorials-from-across-the-web/
http://gamedev.tutsplus.com/articles/roundups/fantastic-gamedev-tutorials-from-across-the-web/
使用 ANE 和行動裝置的 system volume 互動
使用 ANE 和行動裝置的 system volume 互動
An AIR native extension to interact with the system volume on iOS and Android devices.
https://github.com/nweber/SystemVolumeNativeExtension
An AIR native extension to interact with the system volume on iOS and Android devices.
https://github.com/nweber/SystemVolumeNativeExtension
FalconJS
FalconJS = Flex SDK + Falcon Compiler + Compiler.js
即 as/mxml 轉換成 js/html 的方案
http://www.slideshare.net/noridon/falconjs-share-15692006
即 as/mxml 轉換成 js/html 的方案
http://www.slideshare.net/noridon/falconjs-share-15692006
AS3 Physics Engine
Box2D
http://www.box2dflash.org/
Box2D Editor
https://www.iforce2d.net/rube/
Nape
http://napephys.com/
ladeng6666 Nape 教學
http://www.ladeng6666.com/blog/category/nape/
Jiglib
http://www.jiglibflash.com/blog/
APE
http://www.cove.org/ape/
AS3 3D framework
Away3D
license : https://github.com/away3d/away3d-core-fp11/blob/master/README.txt ( Apache 2.0 )
link : http://away3d.com/
Flare3D
license : http://www.flare3d.com/buy/
link : http://www.flare3d.com/
Minko
license : https://github.com/aerys/minko ( MIT )
link : http://minko.io/
Alternative3D
license : http://alternativaplatform.com/en/support/ ( free for any project )
link : http://alternativaplatform.com/
Get HTML code in StageWebView
StageWebView 沒有屬性可以得到該頁的 HTML,但是可以抓到該頁的 title,於是怪招出現了....
http://forums.adobe.com/message/3995612
http://forums.adobe.com/message/3995612
browser_swv.addEventListener(flash.events.Event.COMPLETE, onPageLoaded) ;
browser_swv.loadURL("http://www.twitter.com");
protected function onPageLoaded(ev:Event):void{
browser_swv.loadURL('javascript:document.title=document.documentElement.innerHTML;');
var html_str:String = browser_swv.title;
/* HERE THE CODE TO FIND SOME TAG IN THE HTML */
}
Save Login in Flash and Flex
http://www.judahfrangipane.com/blog/2012/10/12/auto-login-in-flash-and-flex/
透過 HTML Form 讓瀏覽器記住密碼,並讓 flash 也能自動登入
原理是在 HTML 放置隱藏的表單,例如 帳號/密碼
當使用者在 Flash 內的表單送出帳/密,其實是將值送給 JS 同時送出 HTML 的 Form
這樣瀏覽器才會跳出提示,問要不要記憶帳號/密碼
下次使用者來,若瀏覽器有記憶帳密,則原本隱藏的 HTML Form 會自動填上 帳號/密碼,
這時可以透過 JS 捕捉 Form 內的值,並傳回 Flash。
透過 HTML Form 讓瀏覽器記住密碼,並讓 flash 也能自動登入
原理是在 HTML 放置隱藏的表單,例如 帳號/密碼
當使用者在 Flash 內的表單送出帳/密,其實是將值送給 JS 同時送出 HTML 的 Form
這樣瀏覽器才會跳出提示,問要不要記憶帳號/密碼
下次使用者來,若瀏覽器有記憶帳密,則原本隱藏的 HTML Form 會自動填上 帳號/密碼,
這時可以透過 JS 捕捉 Form 內的值,並傳回 Flash。
AS3 Game Framework 遊戲框架
Flixel
http://flixel.org/
Stage3D:no
physics:Box2D, Nape...
license:http://flixel.org/download.html
Flixel Power Tools
http://www.photonstorm.com/flixel-power-tools
Flash Game Dojo
http://flashgamedojo.com/
How to Learn Flixel
http://gamedev.tutsplus.com/articles/how-to-learn/how-to-learn-flixel/
PushButton
https://github.com/PushButtonLabs/PushButtonEngine
Stage3D:no
physics:built-in
license:MIT
FlashPunk
https://github.com/ChevyRay/FlashPunk
Stage3D:no
physics:built-in
license:https://github.com/ChevyRay/FlashPunk/blob/master/license.txt
Citrus Engine
http://citrusengine.com/
Stage3D:yes
physics:Box2D, Nape...
license:MIT
Anthill
http://anthill.ant-karlov.ru/
Stage3D:no
physics:??
license:http://anthill.ant-karlov.ru/wiki/license
Saturday, March 23, 2013
在IE下,嵌入html的 YouTube 影片,總是在最上層...
在IE下,嵌入html的 YouTube 影片,總是在最上層,其他元件無法蓋過去,
google後發現, 嵌入影片時可以餵參數進去!Respect !
How can I make iframe respect z-index in IE?
google後發現,
How can I make iframe respect z-index in IE?
Flash Player and Adobe AIR feature list 版本與功能對照
從 flash player 11 / AIR 3 開始,各版本功能列表;
方便查Stage3D哪個版本開始支援?原生 JSON?全螢幕下輸入文字?
http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html
方便查Stage3D哪個版本開始支援?原生
http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html
AS3 Library 好用類別
3D:
AS3 3D framework
http://rhinolu.blogspot.tw/2013/03/as3-3d-framework.html
Set:
Grant Skinner
https://github.com/gskinner/AS3Libs
CASA Lib
http://casalib.org/
Game:
AS3 Game Framework 遊戲框架
http://rhinolu.blogspot.tw/2013/03/as3-game-framework.html
Security:
flash-anticheat-engine 防竄改參數值
https://code.google.com/p/flash-anticheat-engine/
flaptcha 驗證碼工具 ( 不適用於表單 )
https://code.google.com/p/flaptcha/
UI:
KeyMapper 鍵盤事件小工具
http://www.plugin.io/2012/10/introducing-the-keymapper-class/
Tween:
Green Sock
http://www.greensock.com/
Transform:
TransformTool
http://www.senocular.com/demo/TransformToolAS3/TransformTool.html
Free Transform Manager
http://blog.ryantan.net/2012/07/free-transform-manager-as3-v1-5-1/
https://github.com/ryantan/free-transform-manager-as3
Utils:
Tracking memory leaks 查找記憶體洩漏小工具
http://divillysausages.com/blog/tracking_memory_leaks_in_as3
XML可以透過 System.disposeXML(xml) 釋放記憶體
加了buttonMode的Sprite,若被點了就無法回收
new Dictionary 時有 weakKeys 參數可以下
Effect:
Lighting 閃電特效
http://blog.oaxoa.com/2009/07/27/actionscript-3-as3-lightning-thunderbolt-electric-discharge-class/
Facebook:
Adobe facebook-actionscript-api
https://code.google.com/p/facebook-actionscript-api/
Temple Library Facebook Module
http://templelibrary.googlecode.com/svn/trunk/modules/facebook/readme.html
AS3 3D framework
http://rhinolu.blogspot.tw/2013/03/as3-3d-framework.html
Set:
Grant Skinner
https://github.com/gskinner/AS3Libs
CASA Lib
http://casalib.org/
Game:
AS3 Game Framework 遊戲框架
http://rhinolu.blogspot.tw/2013/03/as3-game-framework.html
Security:
flash-anticheat-engine 防竄改參數值
https://code.google.com/p/flash-anticheat-engine/
flaptcha 驗證碼工具 ( 不適用於表單 )
https://code.google.com/p/flaptcha/
UI:
KeyMapper 鍵盤事件小工具
http://www.plugin.io/2012/10/introducing-the-keymapper-class/
Tween:
Green Sock
http://www.greensock.com/
Transform:
TransformTool
http://www.senocular.com/demo/TransformToolAS3/TransformTool.html
Free Transform Manager
http://blog.ryantan.net/2012/07/free-transform-manager-as3-v1-5-1/
https://github.com/ryantan/free-transform-manager-as3
Utils:
Tracking memory leaks 查找記憶體洩漏小工具
http://divillysausages.com/blog/tracking_memory_leaks_in_as3
XML可以透過 System.disposeXML(xml) 釋放記憶體
加了buttonMode的Sprite,若被點了就無法回收
new Dictionary 時有 weakKeys 參數可以下
Effect:
Lighting 閃電特效
http://blog.oaxoa.com/2009/07/27/actionscript-3-as3-lightning-thunderbolt-electric-discharge-class/
Facebook:
Adobe facebook-actionscript-api
https://code.google.com/p/facebook-actionscript-api/
Temple Library Facebook Module
http://templelibrary.googlecode.com/svn/trunk/modules/facebook/readme.html
Subscribe to:
Comments (Atom)
