Only the original thread that created a view hierarchy can touch its views。原因是android中相關的view和控制項不是安全執行緒的,我們必須單獨做處理。我用Handler來解決。Handler的官方描述:A Handler allows you to send and process Message and Runnable objects associated with a
Flex已經很好的支援了國際化和本地化,具體使用方式如下在workspace目錄下建立一個myProperties目錄,在這個目錄下建立你的字串資源 在mxml裡引入字串資源<fx:Metadata>[ResourceBundle("btnText")][ResourceBundle("enText")]</fx:Metadata> 通過改變getString的第一個參數就可以實現字串的本地化了! public function getText(
//Task.aspackage{public class Task{[Bindable]public var _name:String;public function Task( name:String){_name = name;}}} //mxml private var _sum:int=0;[Bindable]private var task:Task = new Task("fx:Script"); [Bindable]public function get sum():int{
書上解釋的很簡單也很清楚,只是用起來會有一點問題。synchronized method 的同步對象是指類執行個體對象,synchronized static method 的同步對象指類本身,也就是所有對象共用這個同步對象。 問題出在 public int kk(){ g();}當在kk中調用g()時,到底使用了哪個對象?是使用了執行個體對象!無論你是用g()調用,還是even.g()調用,執行個體對象優先。要使用類對象的話,你必須在even類外調用 Even.g() class
http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html [Embed(source="logo.gif")][Bindable]public var imgCls:Class; 如果embed是圖片,那麼相當於定義了一個BitmapAsset的類imgCls只想這漲圖片,BitmapAsset是Bitmap的子類通過new
歡迎有好用外掛程式的朋友推薦! 註:沒有提示說明安裝的,直接使用eclipse的自動更新安裝方式,安裝方式如下: From the Help menu, select Install New Software... to open the Install New Software dialog.Paste the URL for the update site into the Work With text box, and hit the Enter (or Return) key.In