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

as\flex 中添加事件addEventListener()时传递参数

/**
* @author:ycccc8202
* @用途:注册事件进行传递参数的代理类
* @date:2007.8.26
* @example:
* import com.ycccc.utils.JEventDelegate
stage.addEventListener(MouseEvent.MOUSE_DOWN,JEventDelegate.create(mouseDownHandler,"a","b"));
function mouseDownHandler(e:MouseEvent,...arg) {
trace(e)
trace(arg)
}
*/
package com.projectstateview.comm.method
{
import flash.events.Event;

public class JEventDelegate
{
public function JEventDelegate()
{
}
public static function create(f:Function,... arg):Function
{
return function(e:Event):void
{
f.apply(null,[e].concat(arg));
}
}

public static function toString():String
{
return "Class JEventDelegate";
}
}
}


相关文档:

flex 获得客户端信息


flash.system. Capabilities.os;//客户端系统版本
flash.system.Capabilities.language;//客户端语言
flash.system.Capabilities.version;//播放器版本
flash.system.Capabilities.playerType;//播放器类型
flash.system.Capabilities.screenResolutionX&Y;//分辨率 ......

Flex/AS3类库资源大全


1、as3ebaylib
http://code.google.com/p/as3ebaylib/
2、as3youtubelib
http://code.google.com/p/as3youtubelib/
3、as3flickrlib
http://code.google.com/p/as3flickrlib/
4、Yahoo ASTRA Flash Components
http://developer.yahoo.com/flash/astra-flash/
5、facebook-as3
http://code.google.com/p/faceboo ......

Flex Tree组件Demo

这个DEMO可以创建一个全新的树型结构,让我感到奇怪的是,虽然我用XML而不是XMLListCollection/ArrayCollection作为Tree的数据源,但对XML的更新依然会在Tree中反映出来——这似乎和Flex的文档有冲突,下面是引用Flex文档的一段内容:
Raw objects are often not sufficient if you have data that changes, bec ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号