/* Open a new FLash file (ActionScript 3.0). Select TimeLine --> Top Layer --> Frame 1 Select Window --> Actions (F9) Copy and paste this snippet Observe the output */ // Sometimes we need a way to ensure we always execute the loop at least once. var idx = 0; var someString ="now is the time for" do { trace (idx, " ", someString.charAt(idx) ); idx++; } while ( idx < someString.length ) ;