我正在尝试在 Flash AS3 中连接到使用 dopostback 方法的页面,但如果有人有任何想法我已经尝试过但没有任何工作,我不知道该怎么做:
import flash.display.Loader;
import flash.net.URLRequest;
import flash.net.URLVariables;
stop()
c3.buttonMode = true
c3.addEventListener(MouseEvent.CLICK,clc)
//******
var web : String = 'https://services.just.edu.jo/courseschedual/index.aspx'
var loader : URLLoader =new URLLoader()
var urlr : URLRequest = new URLRequest(web)
loader.addEventListener(Event.COMPLETE,comp)
var vars : URLVariables
urlr.method = URLRequestMethod.POST
function clc(e:Event){
vars = new URLVariables()
vars.EVENTTARGET = "ctl00$contentPH$facultyDDL"
vars.EVENTARGUMENT = "80"
urlr.data = vars
loader.load(urlr)
}
function comp(e:Event){
t2.text = (e.target.data)
}