Flex 用 POST 提交数据
public function submit():void{
//要请求的URL
var request:URLRequest = new URLRequest("
http://localhost:8086/test.do
") ;
var load:URLLoader = new URLLoader() ;
//URL参数
var variables:URLVariables = new URLVariables();
//variables.+后面的参数 表示要提交的参数。
variables.content = content.text;
variables.no = 1001 ;
//提交的方式
request.method=URLRequestMethod.POST;
//提交的数据
request.data=variables ;
load.dataFormat = URLLoaderDataFormat.TEXT ;
load.load(request) ;
}
后台通过:
String content = request.getParameter("content") 获取;
String no = request.getParameter("no ") 获取;
相关文档:
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 ......
1、下载皮肤之后,打开解压目录,选择所有swf文件,css文件和字体文件,然后把他们拖动到flex工程的src文件夹中。
(注:yflexskin.swf –yahoo的Flex皮肤中所需的所有图片资源;
yflexskin.ai – 皮肤所需的所有AI源文件--使你的修改和重新导出更自由方便;
......
1.写 session
mxml 文件 加
<mx:RemoteObject source="servlet" id="sessionObject" />
as 文件用下面语句调用
sessionObject.session("set", "foo", 30200);
2.读 session
mxml 文件 加
<mx:RemoteObject source="servlet" id="sessionObject1" res ......
mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cmp="com.render.*"
height="100%" width="100%" paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0">
<cmp:AutoSizeTree
&n ......