/* 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 */ // Demonstation of some of the data types. // Creating variables. // integer var myInteger:int = 14; trace ("myInteger is ", myInteger); //you can do 5 * myInteger; // string var myString:String = "14"; trace ("myString is ", myString); // but you can't do 5 * myInteger; // float var myFloat:Number = (Math.random() * 100); trace ("myFloat is ", myFloat); // trace(Boolean(0)); // Displays: false trace(Boolean(1)); // Displays: true // NaN is cool too. trace("Now we test isNaN ", isNaN(2));