The return statement exits the current method : Return : Function Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Function » Return »

 

The return statement exits the current method


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        sampleFunction(  );

    }
    private function sampleFunction (  ):void {
      return;
      trace("Never called");
    }

  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Function
» Return