Content

Flex回调函数应用示例(回调函数的英文单词是)速看

文章摘要

这篇文章描述了一个使用Flex开发的项目,展示了如何在Flex应用中使用Flex App组件(`FlexApp`)和Alert事件(`Alert`)来消息处理功能。代码中导入了必要的Flex API类,如`ExternalInterface`和`Security`,并通过`doSend`方法创建了FlexApp实例,并在回调函数`callBack`中调用了`Alert.show()`方法,用于显示消息。

xmlns:s=”library://ns.adobe.com/flex/spark”

xmlns:mx=”library://ns.adobe.com/flex/mx” width=”100%” height=”100%”>

import flash.external.ExternalInterface;

import flash.system.Security;

import mx.controls.Alert;

import mx.events.FlexEvent;

public var callBackInfo:String=””;

public function doSend():void{

var call:FlexApp=new FlexApp(“Hello”,callBack);

}

public function callBack(info):void{

Alert.show(info);

}

]]>