package com.zehfernando.utils {
import flash.external.ExternalInterface;
/**
* @author zeh
*/
public class HTMLUtils {
public static function setCookie(__name:String, __value:String = "", __expireDays:Number = 0): void {
var js:XML;
/*FDT_IGNORE*/
js = ;
/*FDT_IGNORE*/
ExternalInterface.call(js, __name, __value, __expireDays);
}
public static function getCookie(__name:String): String {
var js:XML;
/*FDT_IGNORE*/
js = ;
/*FDT_IGNORE*/
return ExternalInterface.call(js, __name);
}
public static function openPopup(__url:String, __width:int = 600, __height:int = 400, __name:String = "_blank"): void {
var js:XML;
/*FDT_IGNORE*/
js = ;
/*FDT_IGNORE*/
ExternalInterface.call(js, __url, __width, __height, __name);
}
public static function closeWindow() : void {
var js:XML;
/*FDT_IGNORE*/
js = ;
/*FDT_IGNORE*/
ExternalInterface.call(js);
}
// public static function setSessionCookie(__name:String, __value:String = ""): void {
//
// var js:XML;
// /*FDT_IGNORE*/
// js = ;
// /*FDT_IGNORE*/
//
// ExternalInterface.call(js, __name, __value);
// }
//
// public static function getSessionCookie(__name:String): String {
//
// var js:XML;
// /*FDT_IGNORE*/
// js = ;
// /*FDT_IGNORE*/
//
// return ExternalInterface.call(js, __name);
// }
}
}