2
나는 플래시로 양식을 제출하고 다른 페이지로 html/php을 보내고 해당 페이지에 대한 정보를 얻고 싶습니다. 내가 어떻게 할 수 있니?님께 서 3.0으로 포스트를 보내주십시오.
나는 플래시로 양식을 제출하고 다른 페이지로 html/php을 보내고 해당 페이지에 대한 정보를 얻고 싶습니다. 내가 어떻게 할 수 있니?님께 서 3.0으로 포스트를 보내주십시오.
// create a URLRequest object with the target URL:
var url : String = 'newpage.html';
var urlRequest : URLRequest = new URLRequest(url);
// create a URLVariables object and add all the values you want to send with their identifiers:
var urlVariables : URLVariables = new URLVariables();
urlVariables['formfieldId'] = 'formfieldValue';
// add the urlVariables to the urlRequest
urlRequest.data = urlVariables;
// set the method to post (default is GET)
urlRequest.method = URLRequestMethod.POST;
// use navigateToURL to send the urlRequest, use '_self' to open in the same window
navigateToURL(urlRequest, '_self');
는 URLRequest 클래스를 사용