Hi,

Try sticking inside your init function...


private function init():void
{
  var str:String = "Area = ";
  var area:Number = Math.PI * Math.pow(3, 2);
  str = str + area.toString();
  Alert.show(str);
}

And you probably need a toString() method after the area because it's a
Number and needs converting if you want to concat it to a String.


Nick

Reply via email to