I would just like to mention that resolving this "public vars" issue by
replacing the public by private vars with getters/setters has a side effect:
JSON.stringify() stringifies all getters with the entire package name which
makes the JSON representation unusable [1].

[1]
package com.mydomain.myapp.model.vo
{
    public class MyVO
    {
        private var _foo:String = "bar";

        public function get foo():String
        {
             return this._foo;
        }
    }
}

Becomes:
{
    "com.mydomain.myapp.model.vo.foo":"bar"; 
}





--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Reply via email to