package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var example:String = "Here are some words. Also, here is some punctuation!"; var words:Array = example.split( ' ' ); for ( var i:int = 0; i < words.length; i++ ) { trace( words[i] ); } } } }