Mega Code Archive

 
Categories / Flash ActionScript / Function
 

Package-Level Functions

package packageName {   public function identifier (  ) {   } } To make the function accessible only in that package, we precede the definition with the access control modifier internal: package packageName {   internal function identifier (  ) {   } } package utilities {   import flash.system.*;   public function isMac (  ) {     return Capabilities.os == "MacOS";   } }