The "str = str + area;" code must be inside a function. Is it? The "public var ..." statements must be outside any function. Are they?
--- In [email protected], Sam Lai <samuel....@...> wrote: > > 2009/10/10 funandlearning3 <funandlearni...@...>: > > public var str:String = "Area = "; > > public var area:Number = Math.PI * Math.pow(3, 2); > > > > str = str + area; > > > > I am getting an error that str and area variable do not exist... > > Is the last line located elsewhere in your code? Does the code appear > exactly as you have written it in this email? Because if so, it should > work fine at first glances. >

