package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var example:String = "a string";
var characters:Array = example.split( "" );
for ( var i:Number = 0; i < characters.length; i++ ) {
if ( characters[i] == "r") {
characters.splice( i, 1 );
i--;
}
}
trace( characters.join( "" ) );
}
}
}