易截截图软件、单文件、免安装、纯绿色、仅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之间的部分位伸,其它部分(只剩下四个角了)还是会等比例显示.这个鬼东西对像这样的滚动条,或者在拉伸那种圆角矩形时,非常有用.


相关文档:

SWF之间通信、Flex与SWF之间通信、C#与SWF之间通信


SWF之间通信、Flex与SWF之间通信、C#与SWF之间通信
一、SWF之间通信(各SWF文件均没有包含关系——非内部嵌入加载,均独立)
使用 LocalConnection 类可以创建一个 LocalConnection 对象,该对象可在一个 SWF 文件中或多个 SWF 文件间,调用另一个 LocalConnection 对象中的方法。 通过本地连接,可以在 SWF ......

Flex 右键菜单

MXML:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="20" initialize="doinit()"   mouseOver="getMouseTarget(event)">
 <mx:ArrayCollection id="dgArray">
  <mx:Object pid="1" name="秦始皇" time="秦" />
&nbs ......

Flex 本地安全策略问题

今天在做项目的时候遇到了一个问题,访问xml文件就是成功不了。看了看以前写过的代码都可以,而这个项目中为什么就不行了呢?仔细查看了目录,是百思不得其解啊。
错误信息:*** Security Sandbox Violation ***
Connection to file:///C|/loading.swf halted - not permitted from xxxx/data.xml。这个xml是在工程里面sr ......

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. ......

Flex:上传图片前预览

<?xml version="1.0" encoding="utf-8"?>
<!-- http://yecon.blog.hexun.com/31030831_d.html -->
<!-- http://www.slsay.com -->
<Application name="FileReference_load_test"
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library:adobe/flex/halo"
xmlns:net= ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号