易截截图软件、单文件、免安装、纯绿色、仅160KB

在Flex中的更改滚动条的外观

HScrollBar {
downArrowUpSkin:
Embed(source=”/assets/downArrow.png”);
downArrowOverSkin:
Embed(source=”/assets/downArrow.png”);
downArrowDownSkin:
Embed(source=”/assets/downArrow.png”);
upArrowUpSkin:
Embed(source=”/assets/upArrow.png”);
upArrowOverSkin:
Embed(source=”/assets/upArrow.png”);
upArrowDownSkin:
Embed(source=”/assets/upArrow.png”);
thumbDownSkin:
Embed(source=”/assets/thumb.png”,
scaleGridLeft=”7″, scaleGridTop=”5″,
scaleGridRight=”8″, scaleGridBottom=”7″);
thumbUpSkin:
Embed(source=”/assets/thumb.png”,
scaleGridLeft=”7″, scaleGridTop=”5″,
scaleGridRight=”8″, scaleGridBottom=”7″);
thumbOverSkin:
Embed(source=”/assets/thumb.png”,
scaleGridLeft=”7″, scaleGridTop=”5″,
scaleGridRight=”8″, scaleGridBottom=”7″);
trackSkin:
Embed(source=”/assets/scrolltrack.png”,
scaleGridLeft=”7″, scaleGridTop=”4″,
scaleGridRight=”8″, scaleGridBottom=”6″);
}

以上CSS的代码都比较简单明了,只是thumbDownSkin,thumbUpSkin,thumbOverSkin,trackSkin四个中的后面4个属性(scaleGridLeft,scaleGridTop,scaleGridRight,scaleGridBottom)比较怪怪,一开始我也不懂是啥意思.Google了一下,原来是一个叫 Scale-9 的东东,这个东东中文叫啥我还不大清楚(好像是叫九格宫?).简单的说,就是当图片拉伸的时候,只会对设置的格子之间的部分进行拉伸(横向拉伸时只对X坐标之间的部分位伸,纵向位伸时只对Y坐标之间的部分位伸),如上面的thumbUpSkin,横向拉伸时,会对X坐标为7,8之间的部分拉伸,纵向拉伸时,会对Y坐标为5,7之间的部分位伸,其它部分(只剩下四个角了)还是会等比例显示.这个鬼东西对像这样的滚动条,或者在拉伸那种圆角矩形时,非常有用.


相关文档:

从头学FLEX no.1

1.当下载了flash builder 4 beta ,安装启动时候,回提示输入注册码。可通过网址https://freeriatools.adobe.com/flashbuilder4beta/ 输入Flex Builder 3 Serial #: 来换取 builder 4 beta的注册码。在邮件中查收
2.通过http://www.adobe.com/devnet/flex/videotraining/flex4beta/来学习flex4.个人感觉video做的很不 ......

flex as3开源组件


flex项目和组件等
open-source project : Flex
Adobe APIs 
主要包含corelib, mappr, flickr, youtube及加密等类库. 
http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries
as3awss3lib 
与 Amazon S3 交互的 ActionScript 3.0 类库 
http://code.google.com/p/as3 ......

flex内存泄露解决之道

(1)Event Listeners
                Listening to parent objects does cause memory leaks
                e.g.
      & ......

Flex Event总结

<!-- -->
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
{font-family:宋体;
panose-1:2 ......

flex 中GML转换

package org.openscales.core.format
{
 import flash.utils.getQualifiedClassName;
 import flash.xml.XMLNode;
 import org.openscales.core.Util;
 import org.openscales.core.feature.Feature;
 import org.openscales.core.geometry.Collection;
 import org.openscales.core. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号