flex 读取txt中数据
来源:互联网 发布:break在c语言中的作用 编辑:程序博客网 时间:2024/05/02 12:45
<?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"
minWidth="955" minHeight="600" creationComplete="init()">
<fx:Script>
<![CDATA[
[Bindable]
private var VARIABLES_URL:String = "http://localhost/shishi.txt"; //文件
[Bindable]
private var arrColl:String;
private var urlReq:URLRequest;
private var urlLdr:URLLoader;
private function init():void {
/* Initialize the URLRequest object with the URL to the file of name/value pairs. */
urlReq = new URLRequest(VARIABLES_URL);
/* Initialize the URLLoader object, assign the various event listeners, and load the specified URLRequest object. */
urlLdr = new URLLoader();
urlLdr.addEventListener(Event.COMPLETE, doEvent);//Listener
urlLdr.load(urlReq);
}
private function doEvent(evt:Event):void {
trace(evt.target.data);
}
]]>
</fx:Script>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
minWidth="955" minHeight="600" creationComplete="init()">
<fx:Script>
<![CDATA[
[Bindable]
private var VARIABLES_URL:String = "http://localhost/shishi.txt"; //文件
[Bindable]
private var arrColl:String;
private var urlReq:URLRequest;
private var urlLdr:URLLoader;
private function init():void {
/* Initialize the URLRequest object with the URL to the file of name/value pairs. */
urlReq = new URLRequest(VARIABLES_URL);
/* Initialize the URLLoader object, assign the various event listeners, and load the specified URLRequest object. */
urlLdr = new URLLoader();
urlLdr.addEventListener(Event.COMPLETE, doEvent);//Listener
urlLdr.load(urlReq);
}
private function doEvent(evt:Event):void {
trace(evt.target.data);
}
]]>
</fx:Script>
</s:Application>
入门操作,笔记之,自学成才苦不堪言
- flex 读取txt中数据
- MATLAB读取txt中数据
- 在j2me中读取txt文件数据
- 在j2me中读取txt文件数据
- 在j2me中读取txt文件数据
- 读取txt中的数据到数组中
- VS中MFC读取txt数据
- vc++从txt文件中读取数据
- VTK从TXT文件中读取数据
- c++从txt文件中读取数据
- 读取txt每行数据,放入list中
- C++ 读取.txt数据
- txt数据读取
- 读取txt数据,向excel中写入数据
- 读取TXT文件中数据,数据间空格分割
- c++读取txt中每行的数据到数组中
- 读取mat文件中特定数据保存到txt中
- C++读取txt数据为二维数组 将数据保存到txt文本中
- Erlang中通过Port与外部程序交互
- fork()函数执行过程
- R语言为Hadoop集群数据统计分析带来革命性变化
- mongoDB 入门指南、示例
- IAR 调试中查看变量值
- flex 读取txt中数据
- 背景建模与前景检测之一(Background Generation And Foreground Detection)
- SPMonitoredScope
- Zen-编辑器- 常用快捷链
- 64位word插件(ribbon界面)开发的几个问题
- Linux下多线程程序调试方法
- jQuery技巧
- Spring AOP: Spring之面向方面编程 拦截器 MethodInterceptor
- 解决目前无法下载电驴资源的方法