flex的cookie和session
//向客户端写入cookie
private function setMyCookie(name:String,value:String) :void{
ExternalInterface.call("function (name,value) " +
"{ " +
" var Days = 30; "+
" var exp = new Date();"+
" exp.setTime(exp.getTime() + Days*24*60*60*1000); "+
" document.cookie = name+ '='+ escape (value) + ';expires=' + exp.toGMTString();" +
" }",name,value);
}
FlexContext. getFlexSession()/FlexContext. getHttpRequest()/FlexContex. getHttpResponse()
Package flex.messaging.FlexContext 1 楼 王慧迪 2010-10-28 干嘛还调用js方法呢