본문 바로가기

컴터/Flash & Flex

navigateToURL(url); 에서 파라미터 값 보내기

import flash.net.*;

public var url:URLRequest = new URLRequest("http://~~~~/index.jsp");
var uv:URLVariables = new URLVariables();
url.method = "GET";
uv.name = "fred";
url.data = uv;

navigateToURL(url);



-------이건 별루 추천 X--------------------------

var searchWord:String = keyword.text;
var lnk:String = "http://~~~/file.html?boardCode=gallery&category=&search=" + searchWord;
navigateToURL(new URLRequest(lnk), "_blank");