var value:Number = Math.PI; if (ExternalInterface.available) { ExternalInterface.call("setPIValue", value); }