Using the typeof Operator
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var myVariable:Number = 6; trace(typeof myVariable); // Displays: number } } }