[ActionScript3.0][My flex]读书笔记四之 图标模块应用实例
- 博客分类:
- 技术杂绘
1.chartdata.xml 2.MyColumnChart.mxml模块 Array; public function setData(dataList:Array):void { this.dataList = dataList; } ]]> 3.主程序ChartModula.mxml文件 Array; private var mloader:ModuleLoader; private var showtype:String; private function init():void { var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(); request.url = "chartdata.xml"; loader.addEventListener(Event.COMPLETE,chartdataXm lOnLoaded); loader.load(request); } private function chartdataXmlOnLoaded(event:Event):void { arrData = new Array(); var xml:XML = new XML(event.currentTarget.data); for each(var brand:XML in new XMLList(xml.brand)) { arrData.push( {name:brand.@name, value:brand.@value}); } grd.dataProvider = arrData; } private function showChart(type:String):void { showtype = type; if(mloader!=null) this.removeChild(mloader); mloader = new ModuleLoader(); mloader.url = "modulas/MyColumnChart.swf"; mloader.addEventListener(ModuleEvent.READY,onReady ); mloader.loadModule(); } private function onReady(event:ModuleEvent):void { //添加MyColumnChart模块 this.addChild(mloader); (mloader.child as MyColumnChart).setData(arrData); } ]]-->
发表评论
-
Shell 字符串截取方法
2012-07-06 09:52 892Shell下截取字符串的功能非常少,不过有时在判断字符串前 ... -
PCRE函数简介和使用示例
2012-07-06 09:46 602PCRE是一个NFA正则引擎,不然不能提供完全与Perl一 ... -
组件服务中找不到office word
2012-07-03 13:44 1258在.NET环境下,使用word组件进行word操作,实现w ... -
AS3.0相关知识
2012-07-02 13:16 645as3.0 2010-01-06 0 ... -
JAVA+fms
2012-07-02 13:16 812最近完成的 Java Flex Fms 视频聊天程序,虽然 ... -
BulkLoader多个文件一起加载
2012-07-02 13:16 568flex的单线程以及事件机制,导致了它在加载文件的时候不能 ... -
学习组件拖拽
2012-07-02 13:16 466/本篇文章来源于ACCP教程网, ... -
Cairngorm示例:用户登录
2012-07-02 13:16 3751. Cairngorm简介 Cairngorm是 ... -
[ActionScript3.0][My flex]读书笔记三之 模块化编程
2012-07-01 10:45 6031.加载mxml模块 第一步: 新建mxml模块:Data ... -
Flex+C# WebService连接的例子
2012-07-01 10:45 623Webservie后台的代码: using System; ... -
FLEX数据绑定要点(转)
2012-07-01 10:45 5841.什么是数据绑定 ... -
Removing items from a Flex DataGrid control using the DragManager class
2012-07-01 10:45 598You want to remove items from ... -
flex 打印 预览
2012-06-30 17:09 630flex 打印 预览 2011年03 ... -
flex学习-------flex与as基础
2012-06-30 17:09 531flex学习-------flex与as基础 2010年10 ... -
关于FLex Unit 的 Runtime Exception
2012-06-30 17:08 522关于FLex Unit 的 Runtime Exception ... -
关于Flex4工程和 Alternativa3D 7.5.1的疑问
2012-06-30 17:08 629关于Flex4工程和 Alternativa3D 7.5.1的 ... -
The architecture of Flex and Java applications two (Flex 和 Java 应用程序架构 2)
2012-06-30 17:08 434The architecture of Flex and Ja ...
相关推荐
第1篇 ActionScript3.0语言基础 第1章 ActionScript3.0概述 第2章 搭建ActionScript3.0开发环境 第3章 ActionScript3.0语法 第2篇 ActionScript3.0面向对象特性 第4章 ActionScript3.0面向对象编程 第...
ActionScript 3.0 语言和组件参考概述Adobe Flex 2 语言参考ActionScript 3.0 语言和组件参考是适用于 Flash® Player 应用程序编程接口 (API) 的参考手册。 Adobe Flex 2 语言参考ActionScript 3.0 语言和组件...
既然你搜到了, 那就不多数了,只有这三章。
Flex是目前最为普及的一种RIA开发技术,依托于脱胎换骨的ActionScript 3.0,可以轻松实现相比传统的网络应用更加卓越的交互能力和更加绚丽的表现效果。Flex技术本身并不是凭空出现的,经过了Flash的长期预热,依托于...
《精通Flex 3.0——基于ActionScript 3.0实现》一书源代码。 Flex 3.0 ActionScript 3.0源代码 Flex 3.0源代码。 --------------------------- 第1篇 Flex技术概述 第1章 Flex概述 3 1.1 Flex简介 3 1.2 Flex...
《Flex第一步_基于ActionScript 3.0的Flex 2应用开发》
《ActionScript 3.0 语言参考》是 Flash® Player 和 Adobe AIR™ 应用程序编程接口 (API) 的参考手册。 此版本包括支持 Adobe AIR 运行时环境的新 ActionScript 类、方法和属性。 在可能的情况下,特定于 AIR 的新...
actionscript 3.0的基础知识,包括 actionscript 3.0语言、actionscript 3.0对象的操作方法、显示列表的使用、事件模型、加载外部素材、可视化编程以及利用声音和视频增强应用程序等方面的知识,并结合小实例,讲解...
actionscript3.0开发的进度显示条项目
Actionscript3.0 写的对对碰小游戏,
FLASH四宝贝之-使用ActionScript 3.0组件FLASH四宝贝之-使用ActionScript 3.0组件
第6~9章介绍了ActionScript 3.0的核心——类及以类为基础的面向对象程序设计方法,包括类的基本概念、ActionScript 3.0中常用类的使用、显示编程和组件类;第10、11章分别介绍了几个ActionScript 3.0实际应用的范例...
最专业的最专业的最专业的ActionScript 3.0 ActionScript 3.0 ActionScript 3.0 ActionScript 3.0 ActionScript 3.0
ActionScript 是针对 Adobe Flash Player 运行时环境的编程语言,它在 Flash 内容和应用 程序中实现了交互性、数据处理以及其它许多功能。 ActionScript 是由 Flash Player 中的 ActionScript 虚拟机 (AVM) 来执行的...
ActionScript3.0 中文版 ActionScript3.0 api 中文版说明文档
《ActionScript 3.0 语言和组件参考》概述《ActionScript 3.0 语言参考》是 Flash® Player 和 Adobe AIR™ 应用程序编程接口 (API) 的参考手册。 此版本包括支持 Adobe AIR 运行时环境的新 ActionScript 类、方法...
ActionScript3.0编程词典是你学习ActionScript3.0的良师益友,里面提供了很多ActionScript3.0程序查询与参考,同时也可很方便的查询ActionScript3.0语言
Foundation ActionScript 3.0 Animation Making Things Move ActionScript 3.0
ActionScript3.0 枚举类型的使用 ActionScript3.0 中创建枚举类型