Email Parser 邮件地址解析器, 从给定内容中抓取邮件地址&自动排除重复&过滤指定邮箱

Categories: Flex; Tagged with: ; @ September 10th, 2010 21:41

功能介绍:

从给定的文字内容中 解析Email地址, 并显示出来. 同时支持QQ提取.

(more…)

[旧文存档]Flex: Alert 使用总结 Using Alert in Flex

Categories: Flex; Tagged with: ; @ August 29th, 2010 18:17

1. 通过Alert强制用户选择.

2. 使用一个方法 Handle多个Alert.

 
 
// 弹出Alert
			Alert.show(RM.getString(BUNDLE_ONLINE_TEST, "olt.attempt.warn.remove"), RM.getString(BUNDLE_ONLINE_TEST, "olt.confirm.title"),
				Alert.YES|Alert.CANCEL, null, onAlertClose).data = "remove";
//----------------------统一响应---------------------------------
 
	// onWarning Close
	private function onAlertClose(e:CloseEvent):void {
		if((e.target as Alert).data == "remove") {
			if(e.detail == Alert.YES) {
			...
			}else {
				// do nothing
			}
		}else if((e.target as Alert).data == ALERT_ATTEMPT) {
			if(e.detail == Alert.YES) {
				...
			}
		}else if((e.target as Alert).data == ALERT_GO_ON_ATTEMPT) {
			if(e.detail == Alert.YES) {
				...
			}
		}else {
			throw new Error("无法识别的Alert关闭类型: " + e.toString());
		}
	}

Flex: 指定URL进行Debug

Categories: Flex; Tagged with: ; @ August 27th, 2010 18:35

在需要使用外部JavaScript对Flex web app进行Debug时, 可指定预先修改好的HTML进行Deubug, 写了快2年AS代码了, 这几天才用到…图:

image

Flex: Setting Datagrid column percentWidth – 设置Datagrid 列宽度为百分比

Categories: Flex; Tagged with: ; @ August 19th, 2010 22:31

需求: 设置DatagridColumn的Percent width

临时解决方法: 监听Datagrid的CREATION_COMPLETE事件, 在响应函数中重置Column的宽度.

效果: 参见http://cutown.com/home/reg.php, 网页内嵌入的Datagrid中, 后两列宽度为首列之外的宽度均分.

(more…)

Using crossdomain.xml (Error #2048 Error #2170…) 使用crossdomain控制跨域访问

Categories: Flex; Tagged with: ; @ August 18th, 2010 17:05

当试图与某站外URL的进行数据交互时 (如通过URLLoader), 如果目标站点无crossdomain.xml或该文件未允许当前站点的访问, 则会出现#2048, #2170等错误.

image
Cross-domain policy file specification (PDF, 129 KB)

(more…)

Newer Posts <-> Older Posts



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.