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

flex webserver .net

<?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"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<!--[CDATA[
import mx.rpc.events.ResultEvent;
/* import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
internal function onRequest():void
{
websevercalc.Calu.send();
}
internal function onSuccess(evt:ResultEvent):void
{
this.result.text =evt.result.toString();
}
internal function onFualt(evt:FaultEvent):void
{

} */
private function fnText(event:ResultEvent):void
{
this.result.text = event.result.toString();
}
]]-->
</fx:Script>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
<s:WebService id="websevercalc" wsdl="http://localhost:1524/WebService1.asmx?wsdl" useProxy="false" >
<s:operation name="Calu" result="fnText(event)" >
<s:request >
<r>
{this.txt.text}
</r>
</s:request>
</s:operation>
</s:WebService>
</fx:Declarations>
<s:Label x="287" y="111" id="result" />
<s:Button x="209" y="111" label="圆周长" click="websevercalc.Calu.send() "/>
<s:TextInput x="73" y="111" id="txt"/>
</s:Application>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace HzBsTest
{
/// <summary>
/// WebService1 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
// [System.Web.Script.Services.ScriptService]
public class WebServ


相关文档:

Flex单元测试工具(FlexMonkey)


Testing Flex applications with FlexMonkey 1.0
Without automation, testing the UI components of your Flex
application can be tedious and time consuming. Adobe includes an
automation framework in Flex to enable developers to create automated
tests that operate at the GUI level. FlexMonkey
1.0 i ......

关于跳过flex的sandbox实现访问本地资源的解决方案

需求: 
开发flex的过程中遇到一个问题。flex的项目需要在客服端显示一个局域网类的一台服务器的文件目录结构,并且要能够点击访问。
预想:
flex在以前的版本里面没有file类,这个可以用java代码在后台进行处理,生成xml文件。前台的flex到相应目录下面读取数据即可。
困难:
flash被下载到客服端,有严格的安全 ......

关于flex lib project的使用情况心得

最近遇到了和别人分享某些模块代码的情况,因此想到了flex lib project,结果如下:
    首先,在看很多文章中关于swc的介绍时,都基本说成是用于flex的 component或者assets的打包文件。类似于java 的jar包。当时就很奇 怪,难道他只能在flex project中使用?于是做了如下测试:
     ......

(转)Flex 实践——自定义组件及调用

转自:http://blog.csdn.net/meteorlWJ/archive/2008/03/27/2223239.aspx
     这一次的Flex 实践将要实现以下功能:
     1、自定义一个简单的 Flex 组件
     2、创建一个Index. mxml 来调用该组件
        &n ......

flex Alert组件用法


<?
xml
 
version
=
"1.0"
?>
  
<!-- Simple example to demonstrate the Alert control. -->
  
<
mx:Application
 
xmlns:mx
=
"http://www.adobe.com/2006/mxml"
>
  
&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号