Reply
Thread Tools Display Modes
Unread 07-21-2012, 01:35 AM   #1
Software
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 2
Storing/Retrieving user settings

Hello

I have been tinkering around with the UI source code to learn the basics. I have never touched Flash or Actionscript code until now. However I am quite seasoned as a .Net/Silverlight developer.

I have created a little addon I have been using as a learning tool. It is fully functional and allows you to display your server and the amount of the various tokens you have. I have been trying to figure out how to store user settings to allow the user to hide/show the various elements they may not want to see. I have figured out the existence of DistributedValue class and have been trying to get this to work.

So far this only seems to store the value during the current session. After logging off and back on it is not able to find the value any longer even when using the below with isPeristent set to true:

public static function AddVariable( name:String, value, isPeristent:Boolean ) : Void;

I was assuming this might have been saving the value to a file somewhere but I am starting to wonder if this is not used for this.

Doing a bit of more digging online also turned up:
http://livedocs.adobe.com/flex/3/htm...curity_15.html

But I wanted to see if there was anyone here that could point me in the right direction before I spin my wheels any further. I'm sure I am missing something simple due to my lack of experience with this language.
Attached Thumbnails
Click image for larger version

Name:	TokenBar_TSWAddon.jpg
Views:	14361
Size:	277.6 KB
ID:	4  
__________________
Senior "Software" Engineer
Software is offline   Reply With Quote
Unread 07-21-2012, 09:52 AM   #2
Software
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 2
Answer was provided by Catagorical over on the TSW forums.

http://forums.thesecretworld.com/showthread.php?t=47431

Thanks!
__________________
Senior "Software" Engineer
Software is offline   Reply With Quote
Reply

Go BackSecretUI » Developer Discussions » General Authoring Discussion » Storing/Retrieving user settings

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off