2012-12-11 60 views

回答

0

看到這一個Best way to get the color where a mouse was clicked in AS3獲取選定的顏色。

當你擁有它,簡單地套用yourColor的文本選擇用TextFormat

var myFormat = new TextFormat(); 
myFormat.color = yourColor; 

yourTextField.setTextFormat(myFormat, 
          yourTextField.selectionBeginIndex, 
          yourTextField.selectionEndIndex); 
相關問題