Internal variable : Access Control Modifiers : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Access Control Modifiers »

 

Internal variable


 

    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!
        }
    }

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Class
» Access Control Modifiers