易截截图软件、单文件、免安装、纯绿色、仅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设置浏览器标题

在Flex下设置页面浏览器标题Title工有两种方式:
1(推荐此方法).利用BrowserManager类设置Title:
BrowserManager.getInstance().setTitle("***信息系统");
可以将上面一行代码写在系统的初始化函数中
2.在Apllicaaction标签下设置pageTitle属性:
  <mx:Application xmlns:mx="http://www.adobe.com/ ......

flex 客户端缓存 module swf(转)

flex或者flash客户端的缓存,并不是指浏览器的缓存,浏览器的缓存在一定时间后会过期,先作此声明。
使用flex或者flash开发出来的网站最大的问题就是swf文件过大,国内网速有限,导致加载时间过长,这样会丢失很多潜在的客户。
flex使用RSL技术,可以解决框架的缓存与共享,很大程度的解决了加载问题。但是如果项目过大, ......

flex通过blazeds与java实现增删改查

用的是MySQL数据库。
1,建一个userdb库,再建userinfo表,字段:id(int),username(varchar),password(varchar)。
create database userdb;
use userdb;
create table userinfo(
id int(10) not null auto_increment,
username varchar(20),
password varchar(20),
primary key(id));
2,DBConnection.jav ......

flex Alert组件用法


<?
xml
 
version
=
"1.0"
?>
  
<!-- Simple example to demonstrate the Alert control. -->
  
<
mx:Application
 
xmlns:mx
=
"http://www.adobe.com/2006/mxml"
>
  
&n ......

flex 资源国际化

现在flash builder 4已经自带了多种语言包,在使用的时候直接拿过来用就可以了,在使用资源文件的时候,需要设置一下资源参数
-locale=en_US,zh_CN -source-path=locale/{locale}
flex 3.x的版本的sdk只支持英文和日文,如果需要中文,则可以从flex
4.xsdk的\frameworks\locale拷贝zh_CN等文件夹到flex3.x的\frameworks ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号