Class Flash ActionScript

class Bread
    {
        internal var toastiness:Number = 0;
    }
    class Pillow
    {
        public function Pillow()
        {
            var b:Bread = new Bread();
            b.toastiness = 20; //Compiler error! You can't do this!
        }
    }