View unanswered posts | View active topics

Reply to topic  [ 2 posts ] 
Plugins storage in Project file 
Author Message

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Rejoice plugins developers, FlashDevelop 4 introduces project storage.

Storage isn't available in IProject, you'll have to cast it to Project:
- Add a reference to ProjectManager in your project
- cast PluginBase.CurrentProject (IProject) to Project

Now your project object has:
- project.Storage : Dictionary<string, string> where you can add new key-value pairs,
- project.Save() : persist your data (it will not be written automatically)

Fri Jun 03, 2011 7:37 pm
Profile WWW

Joined: Tue Jan 19, 2010 7:14 pm
Posts: 12
Reply with quote
Thanks Philippe!

Thu Jun 30, 2011 9:36 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.