如何自定义闪存组件?

时间:2013-05-27 09:35:47

标签: flash actionscript slider scrollbar customization

如何为默认闪存组件(滑块和滚动条)创建和设置模板?

默认示例: enter image description here enter image description here

1 个答案:

答案 0 :(得分:0)

您可以使用CSS为内置组件设置外观。有关详细信息,请查看以下文档:

ScrollBar皮肤的示例:

ScrollBar {
  up-arrow-skin: ClassReference(null);
  down-arrow-skin: ClassReference(null);
  trackSkin: Embed(source="skins/ScrollBarTrack.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
  thumbUpSkin: Embed(source="skins/ScrollBarThumb_up.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
  thumbOverSkin: Embed(source="skins/ScrollBarThumb_over.png", scaleGridLeft="1",     scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
  thumbDownSkin: Embed(source="skins/ScrollBarThumb_down.png", scaleGridLeft="1",         scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
}