ITeye博客

replaceAll

琛哥哥 · 2012-12-26 16:39 · FLEX(玩玩的) · 非技术 · Markdown

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="application1_creationCompleteHandler(event)">
	<fx:Script>
		<![cdata[
			import mx.controls.alert;
			import mx.events.flexevent;
			import mx.utils.stringutil;
			import mx.utils.uidutil;
			
			protected function application1_creationcompletehandler(event:flexevent):void
			{
				var id:string = UIDUtil.createUID().replace(/-/g,"");
				Alert.show(id);
			}
			
		]]>
	</fx:Script>
	<fx:Declarations>
		<!-- 将非可视元素(例如服务、值对象)放在此处 -->
	</fx:Declarations>
</s:Application>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。