Ctrl+Enter 預覽效果,組件樣式是不是改變了?下面是默認的樣式和剛才自定義樣式的效果對比圖:
Use the _global style declaration that sets styles for all components in a document.
(使用全局樣式聲明對文檔的所有組件設置樣式)
FlashMX2004的_global對象的Style屬性可以做到這一點: 從components面板拖n 個組件到場景,這裡我用的是Button,CheckBox和RadioButton 三個組件,也不要給組件命名,直接在時間線上寫Action:
_global.style.setStyle("themeColor", "0x00CCFF"); _global.style.setStyle("fontFamily", "Verdana"); _global.style.setStyle("fontSize", "10"); _global.style.setStyle("fontWeight", "bold"); _global.style.setStyle("color", "0x990000");
|