Is there a way to declare a group of members with one common access modifier? I really believe that this can be done in C ++ and some other languages, curious if AS3 exists.
Instead:
class FooBar { public var theDog:String = "Bark!"; public var theCat:String = "Miao!"; private var myBird:String = "Chirp!"; private var myPig:String = "Oink!"; }
It can be written as:
class FooBar { public { var theDog:String = "Bark!"; var theCat:String = "Miao!"; } private { var myBird:String = "Chirp!"; var myPig:String = "Oink!"; } }
source share