Mega Code Archive

 
Categories / Flash ActionScript / String
 

If you use another delimiter in the string, you need to specify it as the argument for the

split() method appropriately. package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         var sValue:String = "a b c d e f";         var aValues = sValue.split(" ");         for (var i = 0; i < aValues.length; i++){            trace(aValues[i]);         }     }   } } a b c d e f