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 ") 获取;
相关文档:
Flex拖拽-两个List之间拖拽
关键字: flex拖拽, list
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationHandler();">
<mx:Script>
<![CDATA[
import mx.events.DragEvent;
imp ......
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 ......
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 ......
几种导航选项卡
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:ButtonBar dataProvider="myPages">
</mx:ButtonBar>
<mx:ToggleButtonBar dataProvider="myPages">
</mx:ToggleButto ......
关于states
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.effects.easing.Bounce;
]]>
</mx:Script>
<mx:states>
<mx:State name="bookDetails" ......