易截截图软件、单文件、免安装、纯绿色、仅160KB

flex 和javascript互相调用

flex 和javascript互相调用。
一、flex 调用javascript
  只需使用静态的ExternalInterface.call就可以了。
  call 方法至少要求一个参数,就所调用额函数的名称。
  也可以传递参数。
  如:
    ExternalInterface.call("alert","hello");
   "hello"就是作为alert的参数。
  var sValue:String= ExternalInterface.call("getValue");
    上述定义的是调用并接受javascript返回值。
二、javascript调用flex
    1、在flex中注册函数。
       ExternalInterface.addCallback("runFlashScript",runScript);
       上述注册了一个runScript函数。
        "runFlashScript" 是为javascript调用的名子。
    2、javascript中调用函数。
       document.getElementById("flashObjectID").runFlashScript();
        or
        window.flashObjectID.runFlashScript();


相关文档:

Flex 对集合的多个字段进行排序

Flex 对集合的多个字段进行排序
关键字: flex, 排序, 日期排序
因为数组可被多个SortFields 排序,Sort 对象的fields 属性就是一个数组。这些sort 创建一
个层级的结构,所有对象进行分组排序,先根据field 属性里的第一个SortField 对象,再第
一个,以此类推。这个例子代码先根据regions 再states 对集合进行排序: ......

Javascript Closures

Javascript Closures
Introduction
The Resolution of Property Names on Objects
Assignment of Values
Reading of Values
Identifier Resolution, Execution Contexts and Scope Chains
The Execution Context
Scope chains and [[scope]]
Identifier Resolution
Closures
Automatic Garbage Collecti ......

JavaScript 调用后台事件和方法

1、后台方法:
protected string CsharpVoid(string strCC)
{
strCC = "http://" + strCC;
return strCC;
}
2、前台页面JavaScript方法:
<script language="javascript" type="text/javascript">
var v = "www.baidu.com";
var s = '<%=CsharpVoid("'+v+'")%>';
document.write(s);
< ......

flex学习起步

http://www.cnblogs.com/beniao/category/190537.html
WebORB for .NET   : http://www.cnblogs.com/beniao/category/190537.html
这个网页也有非可视化组件、数据可视化组件、打印组件以及行为效果组建等:http://examples.adobe.com/flex3/componentexplorer/explorer.html ......

JavaScript 鼠标拖拽进行快速产品分类效果

代码示例
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<mce:style><!--
.man{ float:left; background:#9af; margin:3px; padding:3px; cursor:default}
--></mce:style>< ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号