package level function : Package : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Package »

 

package level function


 

package {
  import flash.display.Sprite;
  public class CallPackagedFunction extends Sprite {
    public function CallPackagedFunction() {
      PackagedFunction(graphics);
    }
  }
}

package {
  import flash.display.Graphics;
  public function PackagedFunction(target:Graphics):void {
    target.lineStyle(0);
    target.lineTo(100,100);
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Package