Created
June 5, 2014 11:40
-
-
Save mizutanikirin/a161fa17b40b6f8cf6e1 to your computer and use it in GitHub Desktop.
POST送信
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 送信かつページ遷移(POST) | |
var variables:URLVariables; | |
var request:URLRequest; | |
request = new URLRequest("http://hoge.jp/hoge.jsp"); | |
variables = new URLVariables(); | |
variables.decode("user_id=" + userNumber); | |
variables.decode("graph_id=fig" + figName); | |
request.data = variables; | |
request.method = URLRequestMethod.POST; | |
navigateToURL( request , "_self"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 送信のみページ遷移なし(POST) | |
var variables:URLVariables; | |
var request:URLRequest; | |
request = new URLRequest("http://hoge.jp/hoge.jsp"); | |
variables = new URLVariables(); | |
variables.decode("user_id=" + userNumber); | |
variables.decode("graph_id=fig" + figName); | |
request.data = variables; | |
request.method = URLRequestMethod.POST; | |
sendToURL(request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment