package{ import flash.display.Sprite; public class 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( "" ) ); } }}
Name (required)
email (will not be published) (required)
Website