Hi,

I have a model class that has a bunch of getters and setters.
Example:

private var _prop:Object;
function get prop():Object {
        return _prop;
}
function set prop(p:Object) {
        _prop = p;
}

I have a controller class that instantiates that model. 

I'm wondering if there is some way to prevent any other class from using
the setter methods of the model except the controller class.  They still
should be able to access the getters.

I want to prevent future developers from being able to access the model
setters from anywhere except the controller in order to enforce proper
MVC patterns.

Thanks!
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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