/* 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 */ // Some simple math routines trace ("add 2 + 4 ", 2 + 4); trace ("mul 2 * 4 ", 2 * 4); trace ("div 4 / 2 ", 4 / 2); trace ("mod 4 % 3 ", 4 % 3); trace (Math.random() *100 );