FLEX中的MXML通过JDBC连接ORACLE读取相关数据

//初始化函数 init  creationComplete="init();“      

/*
* @author Evangelion
* @date
* @version V 1.0
*/

private function init():void
{
getNum.send();
srv.send();//调用send函数传递数据
srv_xml.send();
t.addEventListener(TimerEvent.TIMER,addData);

t.start();
flushTimer.addEventListener(TimerEvent.TIMER,flushData);
flushTimer.start();
}   

//在<fx:Declarations> 中添加如下标签 以达到读取jsp文件内的内容的目的 jsp文件详见本博客中的关于jsp和数据库连接

<s:HTTPService id="srv" url="http://localhost:8080/flex/index.jsp" method="POST"  />

posted @ 2013-10-19 21:23  Evangelion  阅读(142)  评论(0)    收藏  举报