用flash文件作为组件的外观
来源:互联网 发布:香蕉网络电视tv少女 编辑:程序博客网 时间:2024/06/05 17:37
myTitleWindow.css文件
/**//* CSS file */
Application{...}{
fontSize: 12;
backgroundGradientColors: #006699, #AEB4E6;
/**//* backgroundImage: Embed(source="skin/background.swf"); 把swf文件嵌入到程序中*/
backgroundImage: Embed(source="skin/pet.swf");
}
TitleWindow{...}{
borderStyle: "default";
borderSkin: Embed(source="skin/windows_skin.swf", symbol="window_border");
/**//* symbol指SWF文件中元件在库中的链接名 */
closeButtonDisabledSkin: Embed(source="skin/windows_skin.swf",symbol="close_disable");
closeButtonDownSkin: Embed(source="skin/windows_skin.swf",symbol="close_down");
closeButtonOverSkin: Embed(source="skin/windows_skin.swf",symbol="close_over");
closeButtonUpSkin: Embed(source="skin/windows_skin.swf",symbol="close_up");
cornerRadius: 4;
dropShadowEnabled: true;
paddingBottom: 0;
paddingLeft: 0;
paddingRight: 0;
paddingTop: 0;
titleStyleName: "winTitle";
}
.winTitle
{...}{
fontWeight: "bold";
}
Application{...}{
fontSize: 12;
backgroundGradientColors: #006699, #AEB4E6;
/**//* backgroundImage: Embed(source="skin/background.swf"); 把swf文件嵌入到程序中*/
backgroundImage: Embed(source="skin/pet.swf");
}
TitleWindow{...}{
borderStyle: "default";
borderSkin: Embed(source="skin/windows_skin.swf", symbol="window_border");
/**//* symbol指SWF文件中元件在库中的链接名 */
closeButtonDisabledSkin: Embed(source="skin/windows_skin.swf",symbol="close_disable");
closeButtonDownSkin: Embed(source="skin/windows_skin.swf",symbol="close_down");
closeButtonOverSkin: Embed(source="skin/windows_skin.swf",symbol="close_over");
closeButtonUpSkin: Embed(source="skin/windows_skin.swf",symbol="close_up");
cornerRadius: 4;
dropShadowEnabled: true;
paddingBottom: 0;
paddingLeft: 0;
paddingRight: 0;
paddingTop: 0;
titleStyleName: "winTitle";
}
.winTitle
{...}{
fontWeight: "bold";
}
myTitleWindow.mxml文件
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style source="myTitleWindow.css"></mx:Style>
<!-- TitleWindow是Panel的子类,只比Panel组件多了一个关闭按钮,因此它有Panel的全部样式属性。 -->
<mx:TitleWindow x="10" y="10" width="250" height="200" layout="absolute" showCloseButton="true" title="TitleWindow">
<mx:TextArea x="10" y="10" height="106" width="220" text="输入文本"/>
</mx:TitleWindow>
<mx:Panel x="340" y="10" width="250" height="200" layout="absolute">
<mx:Button x="39" y="23" label="Button"/>
<mx:CheckBox x="70" y="93" label="Checkbox"/>
</mx:Panel>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style source="myTitleWindow.css"></mx:Style>
<!-- TitleWindow是Panel的子类,只比Panel组件多了一个关闭按钮,因此它有Panel的全部样式属性。 -->
<mx:TitleWindow x="10" y="10" width="250" height="200" layout="absolute" showCloseButton="true" title="TitleWindow">
<mx:TextArea x="10" y="10" height="106" width="220" text="输入文本"/>
</mx:TitleWindow>
<mx:Panel x="340" y="10" width="250" height="200" layout="absolute">
<mx:Button x="39" y="23" label="Button"/>
<mx:CheckBox x="70" y="93" label="Checkbox"/>
</mx:Panel>
</mx:Application>
- 用flash文件作为组件的外观
- 自定义Flash的DataGrid组件中字体的外观
- 学习Flash CS3的内置组件(二) 更改组件的外观
- Flash绘图纸外观的妙用
- 为Flash MX 2004组件编辑外观(翻译)
- Flash批量文件上传组件
- 基于jquery+flash的文件上传组件uploadify使用
- Flash组件的使用
- 用flash制作SWC文件,生成flex自定义组件
- Java组件外观代码的相关学习
- 组件作为 Map 的索引
- 关于flash组件的问题~~~~~~
- 非常好的flash图表组件
- 用XML文件作为多叉树的脚本
- Flex 自定义组件外观
- Flex 自定义组件外观
- Flex 自定义组件外观
- flex组件外观定制
- 勤快
- Delphi制作以浏览器为界面的应用程序
- 点石互动--wkcow之:内容迁移或域名切换的期望与实践
- 我在以色列做母亲
- 市场营销
- 用flash文件作为组件的外观
- VS2005 Windows Moblie开发小结--环境安装篇
- 关于使用vc++调用matlab生成的dll传递数组的问题
- 找工作....
- 数据挖掘
- quartus2 经常出现的警告
- 用nohup命令让Linux下程序永远在后台执行--zz牧云IT生活
- 暴雪的
- 网络编程——断点续传和多线程下载模式(转)