SKITSANOS FOR RIA

Skitsanos

Thursday, November 13, 2008

Actionscript Cookie Util

Source: in:flex Blog

The Util comes with methods for setting, getting and removing cookies - as mentioned before you do not have to change a single line in your wrapper, just import the class and start setting cookies from flash or flex.

import de.aggro.utils.CookieUtil;  
//Set a cookie named mycookie with a value of mycookie value with a time to live of 30 days
CookieUtil.setCookie("mycookie", "mycookie value", 30);
//Get that cookie and trace its value
trace(CookieUtil.getCookie("mycookie"));
//Delete the cookie from the users computer
CookieUtil.deleteCookie("mycookie");


Read more...

0 comments:

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads