Morton,

I've just (after reading your mail) blogged[1] on the way, that I normally do this. Please read this for my ideas of OOP-ness and best practices on this matter. :)

[1] http://www.barklund.org/blog/2006/06/06/flashvars-and-as2/

Nice class. The only things I'd change are:

1. Use static methods/properties instead of singleton. Gets rid of '.getInstance().' cruft. 2. Remove the setVar() method since these properties really should be read only. Move this into your settings class if you need it. 3. Use composition in the SomeSettingsClass class rather than inheritance since this isn't an 'is a' relationship.

It's also worth noting that the Flex 2 framework has a nice method of abstracting FlashVars via the Application.application.parameters array.

Cheers,

Steve

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to