Using break and continue in Statement Blocks : Break : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » Break »

 

Using break and continue in Statement Blocks


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var aTitles:Array = ["a""b""c"];
        
        for (var i:Number = 0; i < aTitles.length; i++){
          if(aTitles[i== "a") {
            trace("Title found.");
            break;
          }
        }

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Statement
» Break