ViewerContainer.addEventListener(AppEvent.DATA_CREATE_INFOWIDGET, onInfowidgetRequest);
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_CREATE_INFOWIDGET, data, infoReady));
private var m_infoWidgetCallback:Function;
private function onInfowidgetRequest(event:AppEvent){
m_infoWidgetCallback = event.callback;//m_infoWidgetCallback 值为这个函数 infoReady
m_infoWidgetCallback(new AppEvent(AppEvent.DATA_CREATE_INFOWIDGET, _infoData));//去执行其它类的这个infoRedy函数
}
private function infoReady(event:AppEvent){...};
分享到:
相关推荐
可以很好地将JSon字符串转换为Flex对象,很方法JParser.encode()正好相反,其它的使用请参考JSwoof官方网站的文档:http://www.waynemike.pwp.blueyonder.co.uk/jswoof/sub-pages/getting-started.html或者资源包中...
使用方法如下: <![CDATA[ import mx.core.FlexSprite; import mx.effects.easing.Bounce; import mx.controls.Alert; import com.flexspy.*; public function initApp():void { FlexSpy.registerKey...
尽管现有的 EmployeeMgmt 应用程序已经有了 Façade 接口,但这个接口是暴露给 Servlet 使用的,最好能再为 Flex 定义另一个接口 FlexService,并隐藏 Java 语言的特定对象(如 清单 1 所示): 清单 1. Flex...
ade 接口,但这个接口是暴露给 Servlet 使用的,最好能再为 Flex 定义另一个接口 FlexService,并隐藏 Java 语言的特定对象(如 清单 1 所示): 清单 1. FlexService interface public interface FlexService ...
首先环境:Myeclipse+Flex4.5+FusionCharts 至于FusionCharts的相关文件稍后我将放在附件中。 1.新建flex工程: 2.对工程进行相应配置 3.继续配置: 4.找到fusioncharts文件中FusionChartsFlex\...
···flex和bison ····实现小型编译器 ···最终生成中间代码--四元式 ···可以实现if语句、for循环语句、while语句、变量声明和赋值语句的翻译
flex 画图的例子,很不错 //画圆角矩形 private function circleRect(cRectX:Number, cRectY:Number, cRectWidth:Number, cRectHeight:Number, cRectDU:Number):void{ cRectBoxID.graphics.clear(); if...
override protected function createChildren():void { super.createChildren(); shape=new Shape(); shape.graphics.beginFill(bgColor); shape.graphics.lineStyle(boderWidth,boderColor); ...
if (application.... angular.forEach($scope.fileList, function (item) { if (item.fileName.length ) { files.push({fileName : item.fileName}); } }); // ERNO+'00N' Format if (files.length === 0) {
Flex generates a C source file named, "lex.yy.c", which defines the function yylex(). The file "lex.yy.c" can be compiled and linked to produce an executable. When the executable is run, it analyzes ...
public function doSelect(o:Object):void { Alert.show("行的数据分别是:"+o.idx+"/"+o.names+"/"+o.sex); } private var sheet:Sheet; private function onCreate():void { var excelFile:...
一个非常不错的flex时间控件 ()}" labelFunction="selectDateTime" width="150"/> public function selectDateTime(item:Date):String { return item.fullYear + "-" + item.month + "-" + item.dateUTC + ...
private function resultHandler(event:ResultEvent):void { slides = event.result.album.slide; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault....
flex DataGrid 导出Xls private function insertRecordInSheet(row:int,sheet:Sheet,record:Object):void { var colCount:int = rebateByItemDG.columnCount; for(var c:int; c ; c++) { var i:int = 0; ...
An SQL parser, generated from Bison (Yacc) and Flex (Lex). Original version - most of the work - comes from John Levine's Flex & Bison book published by O'Reilley. Example usage: $ echo "SELECT a.name...
flex 一问一答 1.问:在as2中trace(mc._url)可以获得文件的位置,那么在as3中改成什么了? 答:DisplayObject.loaderInfo.parameters 2.问:FLEX中如何快速注释? 答:shift+ctrl+c / shift+ctrl+d 加AS3代码注解块 3...
最小、最快的Flex转换JSON的工具包 private function init():void { var simpleJSON:String = "{\"name\":\"wayne\",\"value\":1000.0}"; var jObj:Object = JParser.decode(simpleJSON); } ====...
protected function app_creationCompleteHandler(event:FlexEvent):void { btn.addEventListener(MouseEvent.CLICK, showNames); btn.addEventListener(MouseEvent.CLICK, showtitles); } protected function...
Calc是一个小的字符串解析计算器库,我使用flex和bison编写。 它可以根据您的需要充当可执行文件或库函数。 输出是通过stdout进行的,但是您可以调整代码以使其返回计算出的值。用法作为可执行文件// Only accept ...
C#版ActiveX + JS +Flex通訊 全實現 因項目部署需要,特把之前寫的與讀卡器通訊的模塊改為ActiveX插件,給Flash調用,由於Flash不能直接調用ActiveX,所以,用JS作為中間層,作為Flash和ActiveX通訊的橋梁。 ...