Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking status of security panel remember option in AS3

Is it possible to acquire status of Remember option in flash security panel for camera using AS3? It would be nice to have a function where it returns 1 if remember option is checked, 0 when it is unchecked and -1 if the remember option is not available due to browser/client settings.

like image 808
ramin Avatar asked Apr 02 '13 02:04

ramin


1 Answers

You can use cookies in flash to store this varaible. So, why not use it .

Example:

var mySharedObject:SharedObject = SharedObject.getLocal("republicofcode");
mySharedObject.data.firstName = "John";
mySharedObject.data.lastName = "Doe";
mySharedObject.flush();
trace(mySharedObject.data.firstName);
trace(mySharedObject.data.lastName);

for more info about my shared object see the link

like image 85
Anas2004 Avatar answered Oct 14 '22 00:10

Anas2004