Added 3 methods to the DataProvider class to add some features to it. It’s an old class, I know, but you can never stop improving!
– removeView = removes a listener, opposite of addView
– save = saves the DataProvider’s items to a local SharedObject
– read = reads the saved items from a local SharedObject, and then populates the DataProvider
I’ll update the DataProviderClass documentation later as I’d prefer not to add more XML files to your CustomActions folder; the more XML reference files you have in there, the more it slows Flash starting up for some people. For now, all methods return true if it worked, and false if it didn’t. The exception is save returns “pending” if the user needs to allocate more space for their local SharedObjects via the Settings Panel.
You can use either the Components as optional features or just include the as file. The as file is included in the MXP. I utilized <a href=”http://www.muzakdeezign.com/mxi_creator/index.asp”>Muzak’s MXI File Creator</a> to quickly package this component; phat product! Go <a href=”http://www.screenweaver.com”>Screenweaver</a>.
JXL DataProvider Extensions – <a href=”https://www.jessewarden.com/downloads/JXL DataProvider Extensions.mxp”>MXP</a> | <a href=”https://www.jessewarden.com/downloads/JXL DataProvider Extensions.as”>AS</a>