block in the MXML document" src="http://www.rntsoft.com/Code/FlexImages/fxScriptblockintheMXMLdocument.PNG"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark" width="700">
public function calculate():void {
var n:Number = Number(fahrenheit.text);
var t:Number = Math.round((n-32)/1.8*10)/10;
celsius.text=String(t);
}