看板 Flash 關於我們 聯絡資訊
※ 引述《whereyou (^^)》之銘言: : 版上各位前輩好 : 小弟在修改MovieCilp顏色時遇到了一個問題 : 就是我想修改它的其中的一部分(也是MovieClip)的顏色 : 可是在我使用的語法下都沒有反應 : 我使用的方法是 : var tempColorTransform:ColorTransform = _root.mcA.mcAA.transform.colorTransform; : tempColorTransform.rgb = color; : _root.mcA.mcAA.transform.colorTransform = tempColorTransform; : 其中mcAA是組成mcA的其中一部份 : 想請問版上前輩要如何修改一個MovieClip的其中一部份的顏色 : 小弟先謝謝各位了 目前是用component的參數來解決: Step 1:在外部設定參數 _root.mcA.colorRed = 0xFF0000; 其中的colorRed就是我自己新增的一個compoent參數 Step 2:MovieClip內部再自己用ColorTransform設定顏色 var colorRedTrans = this.mcAA.transform.colorTransform; colorRedTrans.rgb = colorRed; this.mcAA.transform.colorTransform = colorRedTrans; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.230.168.89 ※ 編輯: whereyou 來自: 61.230.168.89 (06/17 11:39)